Skip to content

Commit 40d562f

Browse files
committed
add disconnect
1 parent cb6a199 commit 40d562f

File tree

3 files changed

+26
-28
lines changed

3 files changed

+26
-28
lines changed

.idea/workspace.xml

Lines changed: 22 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socketio-with-pm2",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "This is an nodejs plugin for socketio, which support socketio run with the cluster mode of pm2",
55
"main": "index.js",
66
"scripts": {

src/socket.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ module.exports = class Socket {
2020
cb(...data)
2121
})
2222
}
23+
disconnect(...data) {
24+
this.socket.disconnect(...data);
25+
}
2326
}

0 commit comments

Comments
 (0)