Type alias Plugin

Plugin: ((websocket, event) => void)

Type declaration

    • (websocket, event): void
    • each plugin is a function that takes in websocket and event as arguments and is called each time a socket emits to topic after handshake (see chat)

      Parameters

      Returns void

Generated using TypeDoc