Class: module:cometvisu-client

module:cometvisu-client

CometVisuClient


new module:cometvisu-client(backendName [, initPath])

The CometVisuClient handles all communication issues to supply the user
ob this object with reliable realtime data.
Itself it can be seen as the session layer (layer 5) according to the OSI
model.

Parameters:
Name Type Argument Description
backendName String

name of the backend (cgi-bin|default|oh|openhab|oh2|openhab2)

initPath String <optional>

optional path to login ressource

Source:

Methods


beforeSend()

manipulates the header of the current ajax query before it is been send to the server

Source:

handleLogin(json)

Handles login response, applies backend configuration if send by
backend and forwards to the configurated transport handleSession
function

Parameters:
Name Type Description
json
Source: