Hub.OnConnectedAsync Method

Definition

Called when a new connection is established with the hub.

public:
 virtual System::Threading::Tasks::Task ^ OnConnectedAsync();
public virtual System.Threading.Tasks.Task OnConnectedAsync ();
abstract member OnConnectedAsync : unit -> System.Threading.Tasks.Task
override this.OnConnectedAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function OnConnectedAsync () As Task

Returns

Task

A Task that represents the asynchronous connect.

Applies to