StreamWebSocket Members

StreamWebSocket has the following members.

Public Constructors

  Name Description
StreamWebSocket Creates a new StreamWebSocket object.

Public Properties

  Name Description
Control Gets socket control data on a StreamWebSocket object.
Information Gets socket information on a StreamWebSocket object.
InputStream Gets the input stream to read from the remote destination on a StreamWebSocket object.
OutputStream Gets the output stream to write to the remote network destination on a StreamWebSocket object.

Public Methods

  Name Description
Close Overloaded. Closes the StreamWebSocket object.
ConnectAsync Starts an asynchronous operation to connect to a remote network destination on a StreamWebSocket object.
SetRequestHeader Adds an HTTP request header to the HTTP request message used in the WebSocket protocol handshake by the StreamWebSocket object.

Public Events

  Name Description
Closed Occurs when a close frame is received on the StreamWebSocket object as part of the close handshake.

See also

Reference

StreamWebSocket Class

Windows.Networking.Sockets Namespace