WebSocketHandlers.onClose(conn: IWebSocketConnection,event: WebSocketCloseEvent): void | Promise<void>
Called once, when the connection closes for any reason.
conn: IWebSocketConnection
The closed connection
event: WebSocketCloseEvent
The close code and reason