MCPcopy
hub / github.com/socketio/socket.io / close

Function close

packages/socket.io/client-dist/socket.io.js:1015–1019  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1013 _proto.doClose = function doClose() {
1014 var _this4 = this;
1015 var close = function close() {
1016 _this4.write([{
1017 type: "close"
1018 }]);
1019 };
1020 if ("open" === this.readyState) {
1021 close();
1022 } else {

Callers 2

socket.io.jsFile · 0.70
cleanupAndCloseFunction · 0.70

Calls 3

_onCloseMethod · 0.80
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected