Type Alias Plugin

Plugin: ((websocket: Socket, event: 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)