Skip to content

Commit 7022560

Browse files
committed
Add close connection method
1 parent 33f5b68 commit 7022560

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/js/client/client.template.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,10 @@
751751
socket.on('reconnect', fn);
752752
}
753753
};
754+
755+
this.close = function () {
756+
socket.close();
757+
};
754758
}
755759

756760
window.YiiNodeSocket = YiiNodeSocket;

0 commit comments

Comments
 (0)