File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -109,33 +109,6 @@ Minimum Required JDK
109109Other JRE implementations may work as well, but haven't been tested.
110110
111111
112- Testing in Android Emulator
113- ---------------------------
114-
115- Please note Android Emulator has issues using ` IPv6 addresses ` . Executing any
116- socket related code (like this library) inside it will address an error
117-
118- ``` bash
119- java.net.SocketException: Bad address family
120- ```
121-
122- You have to manually disable ` IPv6 ` by calling
123-
124- ``` java
125- java.lang. System . setProperty(" java.net.preferIPv6Addresses" , " false" );
126- java.lang. System . setProperty(" java.net.preferIPv4Stack" , " true" );
127- ```
128-
129- somewhere in your project, before instantiating the ` WebSocketClient ` class.
130- You can check if you are currently testing in the Android Emulator like this
131-
132- ``` java
133- if (" google_sdk" . equals( Build . PRODUCT )) {
134- // ... disable IPv6
135- }
136- ```
137-
138-
139112License
140113-------
141114
You can’t perform that action at this time.
0 commit comments