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

Function handler

packages/engine.io-client/test/connection.js:231–237  ·  packages/engine.io-client/test/connection.js::handler
()

Source from the content-addressed store, hash-verified

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