Halyri - Server
0.9.1
|
SignalR hub for the mobile emergency client. Supports emergency client connect, disconnect and reconnect methods. Functions as the callback channel for server-to-client asynchronous method invocations. More...
Inherits Hub.
Public Member Functions | |
SignalRMobileHub () | |
Instantializes the SignalR hub for mobile emergency client. Gets the MobileClientController instance. More... | |
string | Connect () |
Opens a new emergency connection in the system for the mobile emergency client. A GUID is assigned and returned to the client. All subsequest method invocations during the open connection will use the supplied GUID. More... | |
void | Reconnect (string guid) |
Method for explicitly reconnecting mobile mergency client to the system. More... | |
override Task | OnReconnected () |
Handles mobile client reconnect evente. Updates the SignalR connection ID used for callbacks from server to the mobile emergency client. More... | |
void | Disconnect (string guid) |
Closes the emergency connection. Should be called by all mobile emergency clients after their connection has been signaled as handled. More... | |
override Task | OnDisconnected () |
Handles mobile client disconnect events. More... | |
SignalR hub for the mobile emergency client. Supports emergency client connect, disconnect and reconnect methods. Functions as the callback channel for server-to-client asynchronous method invocations.
<author>Veli-Mikko Puupponen</author>
SignalRMobileHub | ( | ) |
Instantializes the SignalR hub for mobile emergency client. Gets the MobileClientController instance.
string Connect | ( | ) |
Opens a new emergency connection in the system for the mobile emergency client. A GUID is assigned and returned to the client. All subsequest method invocations during the open connection will use the supplied GUID.
This is the first method to be called by all connecting mobile emergency clients.
void Disconnect | ( | string | guid | ) |
Closes the emergency connection. Should be called by all mobile emergency clients after their connection has been signaled as handled.
guid | GUID identifying the mobile emergency client |
override Task OnDisconnected | ( | ) |
Handles mobile client disconnect events.
override Task OnReconnected | ( | ) |
Handles mobile client reconnect evente. Updates the SignalR connection ID used for callbacks from server to the mobile emergency client.
void Reconnect | ( | string | guid | ) |
Method for explicitly reconnecting mobile mergency client to the system.
guid | Existing GUID for the reconnecting mobile emergency client |