Closes a session with normal or error close reason, depending on whether cause is cancellation or not.
The cause message is truncated if needed so that the resulting close frame stays within the WebSocket control-frame size limit.
Report a problem