property IWebSocketTransport.onclose Close callback installed by the client. Type ((event: CloseEvent) => void) | null