Class ConnectionManager
This class allows handles authentication, connections & notifications between client and server
Defined in: ConnectionManager.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Event fired on login failed
|
|
Event fired on login succes
|
Method Attributes | Method Name and Description |
---|---|
inCall()
Returns where user is currently in call or not
|
|
locateAndLogin(loginid, password, optionalParams, validSession, silentPair)
|
|
sendZebra(zebra, handlerScopeObject, responseZebraHandler, async, params)
Send a zebra to server
|
Field Detail
{object}
Event_LOGIN_FAILED
Event fired on login failed
{object}
Event_LOGIN_SUCCESS
Event fired on login succes
Method Detail
{boolean}
inCall()
Returns where user is currently in call or not
- Returns:
- {boolean} Whether in call or not.
locateAndLogin(loginid, password, optionalParams, validSession, silentPair)
- Parameters:
- {String} loginid
- {String} password
- {String} optionalParams
- {String} validSession
- {String} silentPair
sendZebra(zebra, handlerScopeObject, responseZebraHandler, async, params)
Send a zebra to server
- Parameters:
- {object} zebra
- Zebra object to send.
- {object} handlerScopeObject
- (Optional) Handler scope object
- {object} responseZebraHandler
- Reponse handler for zebra request.
- {boolean} async
- Whether request is async or sync.
- {object} params
- Extra params to be passed.
- Returns:
- null