C# Class SignalR.Hubs.Hub

Provides methods that communicate with SignalR connections that connected to a Hub.
Inheritance: IHub, IConnected, IDisconnect
Show file Open project: Icenium/SignalR

Public Methods

Method Description
Connect ( ) : System.Threading.Tasks.Task

Called when the connection connects to this hub instance.

Disconnect ( ) : System.Threading.Tasks.Task

Called when a connection disconnects from this hub instance.

Reconnect ( IEnumerable groups ) : System.Threading.Tasks.Task

Called when the connection reconnects to this hub instance.

RejoiningGroups ( IEnumerable groups ) : IEnumerable

Called before a connection completes reconnecting to this IHub instance.

Protected Methods

Method Description
Hub ( ) : System.Collections.Generic

Method Details

Connect() public method

Called when the connection connects to this hub instance.
public Connect ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Disconnect() public method

Called when a connection disconnects from this hub instance.
public Disconnect ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Hub() protected method

protected Hub ( ) : System.Collections.Generic
return System.Collections.Generic

Reconnect() public method

Called when the connection reconnects to this hub instance.
public Reconnect ( IEnumerable groups ) : System.Threading.Tasks.Task
groups IEnumerable The groups that the client was subscribed to
return System.Threading.Tasks.Task

RejoiningGroups() public method

Called before a connection completes reconnecting to this IHub instance.
public RejoiningGroups ( IEnumerable groups ) : IEnumerable
groups IEnumerable The groups the reconnecting client claims to be a member of.
return IEnumerable