Web Socket. Close Method
Closes the MessageWebSocket object and sends an empty close frame to the server.
Closes the MessageWebSocket object and indicates a reason for the closure.
public: virtual void Close() = Close;
// This member is not implemented in C#
' This member is not implemented in VB.NET
public: virtual void Close(unsigned short code, Platform::String ^ reason) = Close;
void Close(unsigned short code, winrt::hstring const & reason);
[Windows.Foundation.Metadata.Overload("CloseWithStatus")] public void Close(ushort code, string reason);
function close(code, reason)
Public Sub Close (code As UShort, reason As String)
Optional UTF-8-encoded data with additional information about the closure.