Open ocram opened 8 years ago
Does this library work in the emulator? We had quite a few examples here already where things only worked on a real device.
What's wrong on emulators? Are there any exceptions?
What server URL to use when both the server and the emulator run locally on the development machine? Something like ws://127.0.0.1/websocket?
ws://127.0.0.1/websocket
Some other libraries have to disable IPv6 when using the emulator. So maybe this helps:
// if (Build.PRODUCT.equals("google_sdk")) { java.lang.System.setProperty("java.net.preferIPv6Addresses", "false"); java.lang.System.setProperty("java.net.preferIPv4Stack", "true"); // }
This issue seems to be related: https://github.com/delight-im/Android-DDP/issues/46
Does this library work in the emulator? We had quite a few examples here already where things only worked on a real device.
What's wrong on emulators? Are there any exceptions?
What server URL to use when both the server and the emulator run locally on the development machine? Something like
ws://127.0.0.1/websocket
?Some other libraries have to disable IPv6 when using the emulator. So maybe this helps: