From 858907f9be58817606d0fc9846b0a5ebc33f0f62 Mon Sep 17 00:00:00 2001 From: "Ifedapo .A. Olarewaju" Date: Thu, 10 Dec 2020 12:16:32 +0100 Subject: [PATCH] docs: add import hints to readme (#586) --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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