Update README.md
This commit is contained in:
parent
f1857d8161
commit
be2d4916f4
14
README.md
14
README.md
@ -18,18 +18,18 @@ This server is used to get the appObjects and generalData for the webApp clients
|
|||||||
#### sendGeneralData
|
#### sendGeneralData
|
||||||
webAppClient.sendGeneralData(message, type, options = {})
|
webAppClient.sendGeneralData(message, type, options = {})
|
||||||
Sends a message to the cloud via webAppServer
|
Sends a message to the cloud via webAppServer
|
||||||
message: content of the message
|
* message: content of the message
|
||||||
type: type of the message
|
* type: type of the message
|
||||||
|
|
||||||
#### requestGeneralData
|
#### requestGeneralData
|
||||||
webAppClient.requestGeneralData(type, vectorClock = '0')
|
webAppClient.requestGeneralData(type, vectorClock = '0')
|
||||||
Requests the generalData from webAppServer
|
Requests the generalData from webAppServer
|
||||||
type: type of the message
|
* type: type of the message
|
||||||
vectorClock: vectorClock after which the message should be requested (can be used with Date.now()) (default = '0')
|
* vectorClock: vectorClock after which the message should be requested (can be used with Date.now()) (default = '0')
|
||||||
Returns an object (set of generalData)
|
* Returns an object (set of generalData)
|
||||||
|
|
||||||
#### requestObjectData
|
#### requestObjectData
|
||||||
webAppClient.requestObjectData(keyPath)
|
webAppClient.requestObjectData(keyPath)
|
||||||
Requests the objectData/appObjects from webAppServer
|
Requests the objectData/appObjects from webAppServer
|
||||||
path: (an Array) path of the required object (eg. \['Sample', Property1, property2..]
|
* path: (an Array) path of the required object (eg. \['Sample', Property1, property2..]
|
||||||
Returns an Object/Array (requested path)
|
* Returns an Object/Array (requested path)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user