Logs
Log messages sent by the SDK
Headers
type
: LOGauthor
: sdk Idrecipients
: client Idstatus
: SENT
payload
origin
: message originstatus
: message log statusmessage
: string of the messagetimeStamp
: message timestamp
origin
Enumerated string with possible values :
WS_SERVER
: the message comes from the websocket serverSDK
: the message comes from the SDKCLIENT
: the message comes from the client
status
Enumerated string with possible values :
ERROR
: An error occuredWARNING
: A warning occuredINFO
: Information messageMESSAGE
: Normal messageDEBUG
: Debug message
Example
Example of a log message coming from the websocket server
{
"type": "LOG",
"payload": {
"origin": "WS_SERVER",
"status": "MESSAGE",
"message": "Client authenticated : sdk_87C07571-7268-4254-8335-BA73951E3C5D, recipients : [wv_87C07571-7268-4254-8335-BA73951E3C5D]",
"timeStamp": "2024-01-04T16:04:38.113+01:00"
},
"author": "sdk_87C07571-7268-4254-8335-BA73951E3C5D",
"recipients": [
"87C07571-7268-4254-8335-BA73951E3C5D"
],
"status": "SENT"
}