diff --git a/README.md b/README.md index fa96567..79564f4 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,11 @@ Please use the lastest version of socket.io 2.x: [socket.io 2.3.0](https://www.n Socket.IO-client Java has almost the same api and features with the original JS client. You use `IO#socket` to initialize `Socket`: ```java -socket = IO.socket("http://localhost"); +import io.socket.client.IO; +import io.socket.client.Socket; +... + +Socket socket = IO.socket("http://localhost"); socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() { @Override