Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 994 Bytes

streamwebsocket_connectasync_682685111.md

File metadata and controls

30 lines (21 loc) · 994 Bytes
-api-id -api-type
M:Windows.Networking.Sockets.StreamWebSocket.ConnectAsync(Windows.Foundation.Uri)
winrt method

Windows.Networking.Sockets.StreamWebSocket.ConnectAsync

-description

Starts an asynchronous operation to connect to a remote network destination on a StreamWebSocket object.

-parameters

-param uri

An absolute Uri for the server to connect to.

-returns

An asynchronous connect operation on a StreamWebSocket object.

-remarks

The ConnectAsync method initiates the WebSocket handshake with a remote network destination, and then negotiates the subprotocol.

For WebSocket connections over TCP, use the ws:// scheme in the uri. For secure WebSocket connections over TLS/SSL, use the wss:// scheme.

-examples

-see-also

Uri