MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / off

Method off

client/src/modules/socketClient.js:178–183  ·  view source on GitHub ↗

* Remove event listener * @param {string} event - Event name * @param {Function} handler - Event handler

(event, handler)

Source from the content-addressed store, hash-verified

176 * @param {Function} handler - Event handler
177 */
178 off(event, handler) {
179 if (!this.socket) return;
180
181 this.socket.off(event, handler);
182 this.listeners.delete(event + handler.toString());
183 }
184
185 /**
186 * Check if socket is connected and authenticated

Callers 3

disconnectMethod · 0.80
AiModalFunction · 0.80
listenFunction · 0.80

Calls 1

deleteMethod · 0.45

Tested by 1

listenFunction · 0.64