Missing custom variables in ConnectionStatusEvent: Disconnected

SLM

Member
Custom variables are sent (back) with webhooks:
Method:connect
Method:ConnectionStatusEvent and "status":"ESTABLISHED"
Method: playStream
Method:StreamStatusEvent
etc

but they are missing in:
Method:ConnectionStatusEvent and "status":"DISCONNECTED"
Method:stopStream

Is this intentional or a bug?
 

Max

Administrator
Staff member
Good day.
Yes, /stopStream REST hook does not pass custom parameter, but /StreamStatusEvent with status "STOPPED" does, this seems to be enough.
If client disconnects while playing a stream, /StreamStatusEvent with status "FAILED" also contains custom parameters.
Anyway, sessionId is always available in REST hooks, so you always have an uniquie key identifying the client and its custom parameters on backend side.
 
Last edited:

SLM

Member
Good day.
Yes, /stopStream[/CODE] REST hook does not pass custom parameter, but [ICODE]/StreamStatusEvent with status "STOPPED" does, this seems to be enough.
If client disconnects while playing a stream, /StreamStatusEvent with status "FAILED" also contains custom parameters.
Anyway, sessionId is always available in REST hooks, so you always have an uniquie key identifying the client and its custom parameters on backend side.
It would be better if these variables were to be sent consistently with every webhook. Sessionid is an 78 character string which is not very efficient in database queries.
 

Max

Administrator
Staff member
It would be better if these variables were to be sent consistently with every webhook. Sessionid is an 78 character string which is not very efficient in database queries.
We raised internal ticket WCS-2738 for this feature request.
Please note that we provide no ETA for feature requests, it depends on votes for this feature from another customers.
 

Max

Administrator
Staff member
Good day.
We added session custom object to /ConnectionStatusEvent with DISCONNECTED status since build 5.2.1036.
Also it is now possible to receive /publishStream or /playStream custom object in /unpublishStream or /stopStream respectively.
 
Top