Class Index | File Index

Classes


Class ServerSession

ServerSession implementation used for polling Server data.
Defined in: comm.js.

Class Summary
Constructor Attributes Constructor Name and Description
<private> <inner>  
Method Summary
Method Attributes Method Name and Description
<private> <static>  
ServerSession.addEventHandler(eventHandlerId, eventHandler)
Add an event handler for an eventHandlerId to this ServerSession.
<private>  
addReq(key, cb)
Add a request to the SessionSession object.
<private> <static>  
ServerSession.addReq(key, cb, arg)
Add a request to the SessionSession object.
<private> <static>  
ServerSession.findEventHandler(eventHandlerId)
Return an event handler via its eventHandlerId.
<private> <static>  
ServerSession.make(cb)
Add a ServerSession make network request.
<private> <static>  
ServerSession.removeEventHandler(eventHandlerId)
Remove an event handler from the ServerSession.
Class Detail
<private> <inner> ServerSession()
Method Detail
<private> <static> ServerSession.addEventHandler(eventHandlerId, eventHandler)
Add an event handler for an eventHandlerId to this ServerSession.

This is used to listen to events from the ServerSession.

Parameters:
{String} eventHandlerId
{Function} eventHandler

<private> addReq(key, cb)
Add a request to the SessionSession object.
Parameters:
{String} key
{baja.comm.Callback} cb

<private> <static> ServerSession.addReq(key, cb, arg)
Add a request to the SessionSession object.
Parameters:
{String} key
{baja.comm.Callback} cb
arg
call argument.

<private> <static> {Function} ServerSession.findEventHandler(eventHandlerId)
Return an event handler via its eventHandlerId.
Parameters:
{String} eventHandlerId
Returns:
{Function} event handler or null if cannot be found.

<private> <static> ServerSession.make(cb)
Add a ServerSession make network request.
Parameters:
cb

<private> <static> ServerSession.removeEventHandler(eventHandlerId)
Remove an event handler from the ServerSession.
Parameters:
{String} eventHandlerId

Documentation generated by JsDoc Toolkit 2.3.2