File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ Running the Example
1414There's a simple chat server and client example located in the ` example `
1515folder. First, compile the example classes and JAR file:
1616
17- ``` shell
17+ ``` bash
1818ant
1919```
2020
2121Then, start the chat server (a ` WebSocketServer ` subclass):
2222
23- ``` shell
23+ ``` bash
2424java -cp example:dist/WebSocket.jar ChatServer
2525```
2626
2727Now that the server is started, we need to connect some clients. Run the
2828Java chat client (a ` WebSocketClient ` subclass):
2929
30- ``` shell
30+ ``` bash
3131java -cp example:dist/WebSocket.jar ChatClient
3232```
3333
@@ -64,7 +64,7 @@ Testing in Android Emulator
6464Please note Android Emulator has issues using ` IPv6 addresses ` . Executing any
6565socket related code (like this library) inside it will address an error
6666
67- ``` shell
67+ ``` bash
6868java.net.SocketException: Bad address family
6969```
7070
You can’t perform that action at this time.
0 commit comments