WebSocketClient.ConnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9119)
ConnectAsync(Uri, CancellationToken)
Establish a WebSocket connection to the specified URL.
Declaration
public async Task ConnectAsync(Uri uri, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | URL that identifies the remote server. |
CancellationToken | cancellationToken | Cancellation token to cancel the operation. |
Returns
Type | Description |
---|---|
Task |
ConnectAsync(String, CancellationToken)
Establish a WebSocket connection to the specified URL.
Declaration
public Task ConnectAsync(string uri, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
String | uri | URL that identifies the remote server. |
CancellationToken | cancellationToken | Cancellation token to cancel the operation. |
Returns
Type | Description |
---|---|
Task |