MCPcopy Index your code
hub / github.com/theturtle32/WebSocket-Node / onClose

Function onClose

lib/W3CWebSocket.js:224–229  ·  view source on GitHub ↗
(code, reason)

Source from the content-addressed store, hash-verified

222
223
224function onClose(code, reason) {
225 destroy.call(this);
226 this._readyState = CLOSED;
227
228 this.dispatchEvent(createCloseEvent(code, reason || ''));
229}
230
231
232function onMessage(message) {

Callers

nothing calls this directly

Calls 1

createCloseEventFunction · 0.85

Tested by

no test coverage detected