MCPcopy Create free account
hub / github.com/gnmyt/Nexterm / removeMessageHandler

Method removeMessageHandler

server/lib/ScriptLayer.js:148–152  ·  view source on GitHub ↗
(ws)

Source from the content-addressed store, hash-verified

146 }
147
148 removeMessageHandler(ws) {
149 for (const entry of this.handlers) {
150 if (entry.ws === ws) { ws.removeListener("message", entry.handler); this.handlers.delete(entry); break; }
151 }
152 }
153
154 handleEnd(exitCode) {
155 if (!this.running) return;

Callers 1

handleSessionFunction · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected