MCPcopy Index your code
hub / github.com/socketio/socket.io / close

Function close

client-dist/socket.io.js:1224–1228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1222 value: function doClose() {
1223 var _this4 = this;
1224 var close = function close() {
1225 _this4.write([{
1226 type: "close"
1227 }]);
1228 };
1229 if ("open" === this.readyState) {
1230 close();
1231 } else {

Callers 2

socket.io.jsFile · 0.70
cleanupAndCloseFunction · 0.70

Calls 3

writeMethod · 0.45
onCloseMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected