enable to send cookie

This commit is contained in:
Naoyuki Kanezawa
2013-05-09 02:20:13 +09:00
parent c61f2b9e81
commit 080d4d8935
6 changed files with 59 additions and 0 deletions

View File

@@ -36,6 +36,15 @@ socket.on(Socket.EVENT_ERROR, new Emitter.Listener() {
});
```
How to set options:
```java
opts = new Socket.Options();
opts.cookie = "foo=1;"
socket = new Socket("ws://localhost", opts) { ... };
```
See the Javadoc for more details.
http://nkzawa.github.io/engine.io-client.java/apidocs/