Close this WebSocket connection. code is the status code for the closure (see RFC6455 section 7.4 for a list of valid status codes). reason is the human readable reason for closing the connection (can be any UTF8 string, must be less than 123 bytes).
Note: To achieve a clean close, you will need to keep polling until either WebSocketClient.connectionClosed or WebSocketServer.clientDisconnected is received.
Note: HTML5 export might not support all status codes. Please refer to browsers-specific documentation for more details.
Close this WebSocket connection. code is the status code for the closure (see RFC6455 section 7.4 for a list of valid status codes). reason is the human readable reason for closing the connection (can be any UTF8 string, must be less than 123 bytes). Note: To achieve a clean close, you will need to keep polling until either WebSocketClient.connectionClosed or WebSocketServer.clientDisconnected is received. Note: HTML5 export might not support all status codes. Please refer to browsers-specific documentation for more details.