From 954c81a637944dbfca73aaa16ae07a37782f3af2 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Fri, 27 Nov 2015 10:07:49 +0300 Subject: [PATCH] Update README.md --- README.md | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/README.md b/README.md index c4f9c60..3bee7d1 100644 --- a/README.md +++ b/README.md @@ -218,13 +218,6 @@ Base configuration. More details about Configuration object is [here](https://gi Programmatic handlers binding: - server.addMessageListener(new DataListener() { - @Override - public void onData(SocketIOClient client, String message, AckRequest ackRequest) { - ... - } - }); - server.addEventListener("someevent", SomeClass.class, new DataListener() { @Override public void onData(SocketIOClient client, Object data, AckRequest ackRequest) { @@ -288,20 +281,6 @@ Declarative handlers binding. Handlers could be bound via annotations on any obj ... } - // only data object is required in arguments, - // SocketIOClient and AckRequest could be ommited - @OnJsonObject - public void onSomeEventHandler(SocketIOClient client, SomeClass data, AckRequest ackRequest) { - ... - } - - // only data object is required in arguments, - // SocketIOClient and AckRequest could be ommited - @OnMessage - public void onSomeEventHandler(SocketIOClient client, String data, AckRequest ackRequest) { - ... - } - } SomeBusinessService someService = new SomeBusinessService(); @@ -333,16 +312,6 @@ Declarative handlers binding. Handlers could be bound via annotations on any obj // connection established, now we can send an objects - // send json-object to server - // '@class' property should be defined and should - // equals to full class name. - var obj = { '@class' : 'com.sample.SomeClass', - ... - }; - socket.json.send(obj); - - - // send event-object to server // '@class' property is NOT necessary in this case var event = {