MCPcopy
hub / github.com/socketio/socket.io / handler

Function handler

packages/engine.io-client/test/connection.js:231–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229
230 socket.on("open", () => {
231 const handler = () => {
232 expect(socket.transport.readyState).to.eql("closed");
233 expect(() => socket.write("ignored")).to.not.throwException();
234
235 removeEventListener("beforeunload", handler, false);
236 done();
237 };
238
239 addEventListener("beforeunload", handler, false);
240 dispatchEvent(createEvent("beforeunload"));

Callers

nothing calls this directly

Calls 4

doneFunction · 0.85
eqlMethod · 0.80
throwExceptionMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…