Halyri - Server  0.9.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
SignalRMobileHub Class Reference

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...
 

Detailed Description

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>

Constructor & Destructor Documentation

Instantializes the SignalR hub for mobile emergency client. Gets the MobileClientController instance.

Member Function Documentation

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.

Returns
GUID for the connection being opened
void Disconnect ( string  guid)

Closes the emergency connection. Should be called by all mobile emergency clients after their connection has been signaled as handled.

Parameters
guidGUID identifying the mobile emergency client
override Task OnDisconnected ( )

Handles mobile client disconnect events.

Returns
override Task OnReconnected ( )

Handles mobile client reconnect evente. Updates the SignalR connection ID used for callbacks from server to the mobile emergency client.

Returns
void Reconnect ( string  guid)

Method for explicitly reconnecting mobile mergency client to the system.

Parameters
guidExisting GUID for the reconnecting mobile emergency client

The documentation for this class was generated from the following file: