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

Function createEvent

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

Source from the content-addressed store, hash-verified

217 });
218
219 const createEvent = (name) => {
220 if (typeof Event === "function") {
221 return new Event(name);
222 } else {
223 // polyfill for IE
224 const event = document.createEvent("Event");
225 event.initEvent(name, true, true);
226 return event;
227 }
228 };
229
230 socket.on("open", () => {
231 const handler = () => {

Callers 1

connection.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected