MessageWebSocket.Close Method

Closes the MessageWebSocket object.

Overload list

Name Description
MessageWebSocket.Close () Closes the MessageWebSocket object and sends an empty close frame to the server.
MessageWebSocket.Close (UInt16, String) Closes the MessageWebSocket object and indicates a reason for the closure.

Remarks

Use Close(UInt16, String) to provide a reason for the closure.

See also

Reference

MessageWebSocket Class

MessageWebSocket Members

Windows.Networking.Sockets Namespace