Skip to content

Commit 2bd0589

Browse files
authored
Merge pull request TooTallNate#783 from TooTallNate/marci4-patch-readme
Update README.markdown
2 parents b0545e4 + 7ee28b3 commit 2bd0589

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

README.markdown

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -109,33 +109,6 @@ Minimum Required JDK
109109
Other 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-
139112
License
140113
-------
141114

0 commit comments

Comments
 (0)