MCPcopy Create free account
hub / github.com/bcms/cms / register

Method register

client/src/handlers/socket.ts:200–232  ·  view source on GitHub ↗

* Registers an event handler for a specified socket event name. * * @param {Name} eventName - The name of the socket event to register the handler for. * @param {SocketEventHandler } handler - The handler function to be executed when the event is triggered. * @return {() =>

(
        eventName: Name,
        handler: SocketEventHandler<Name>,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 12

constructorMethod · 0.95
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
initFunction · 0.45
createServerFunction · 0.45
initFunction · 0.45
initFunction · 0.45

Calls 3

pushMethod · 0.80
errorMethod · 0.65
handlerFunction · 0.50

Tested by

no test coverage detected