MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / close

Method close

modules/network/websocket/websocket.js:104–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 return socket;
103 }
104 close() {
105 this.socket?.close();
106 delete this.socket;
107
108 Timer.clear(this.timer);
109 delete this.timer;
110
111 this.state = 4;
112 }
113};
114
115function callback(message, value) {

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected