StreamWebSocket.Close | close methods

Applies to Windows and Windows Phone

Closes the StreamWebSocket object.

Overload list

MethodDescription
Close(UInt16, String) Closes the StreamWebSocket and indicates a reason for the closure.
Close() Closes the StreamWebSocket and sends an empty close frame to the server.

Remarks

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

See also

StreamWebSocket

 

 

Show:
© 2014 Microsoft