Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

WebSocketClient.ConnectAsync Method

Namespace: Rebex.Net
Assembly: Rebex.WebSocket.dll (version 7.0.9147)

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
In This Article
  • ConnectAsync(Uri, CancellationToken)
  • ConnectAsync(String, CancellationToken)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies