diff --git a/README.md b/README.md index 3a890c8..9e9328c 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,17 @@ io.adapter.remoteLeave('', 'room1', function (err) { }); ``` +### RedisAdapter#remoteDisconnect(id:String, close:Boolean, fn:Function) + +Makes the socket with the given id to get disconnected. If `close` is set to true, it also closes the underlying socket. The callback will be called once the socket was disconnected, or with an `err` argument if the socket was not found. + +```js +io.adapter.remoteDisconnect('', true, function (err) { + if (err) { /* unknown id */ } + // success +}); +``` + ### RedisAdapter#customRequest(data:Object, fn:Function) Sends a request to every nodes, that will respond through the `customHook` method.