From fe8a73075f63d67389f4209f7186238ca3188f6f Mon Sep 17 00:00:00 2001 From: "Ifedapo .A. Olarewaju" Date: Fri, 28 Jun 2019 15:41:57 +0100 Subject: [PATCH] Add Import hints to readme I feel it'll be easier for users to adopt the code if they get these hints. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90022654..8d3c330b 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,11 @@ Please use socket.io-client-java 0.9.x for that instead. 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