Skip to main content

SIGNALING API Reference

Module Information​

Service Files:

  • Private: service/signaling.js
  • Public: service/signaling.js

Available Services: 3 Documented Services: 3


signaling.notify​

Broadcast signaling data to a list of hub recipients, excluding the sender socket. Iterates each hub ID in the recipients array, fetches all entity sockets for that hub excluding the provided socket_id, and sends the full input payload to each via RedisStore.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/signaling.notify

Parameters​

ParameterTypeRequiredDefaultDescription
recipientsarrayYes--
socket_idstringYes--

Returns​

FieldTypeDescription
typeany-
descriptionany-

Possible Errors​

Error codes not documented


signaling.message​

Broadcast a signaling message to target peers and optionally log a call event. Resolves recipients from the target object set during initialization: socket-scoped (target.socket_id or target.stream_id), hub-scoped (target.hub_id), or user-scoped (target.uid). After sending via RedisStore, attempts to log the call event in chat history if the role is 'caller' and type is cancel, leave, or reject.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/signaling.message

Parameters​

ParameterTypeRequiredDefaultDescription
targetobjectNo--
originobjectNo--
scopestringNo--
typestringNo--
rolestringNo--
durationintegerNo0-

Returns​

FieldTypeDescription
typeany-
descriptionany-

Possible Errors​

Error codes not documented


signaling.dial​

Initiate a call to a target user by sending an INCOMING_CALL signal to all their connected sockets. Resolves the target user's sockets via user_sockets, creates a room_invite_next entry for each socket as a listener, and sends the call payload via RedisStore. Returns offline indicator if the target user has no active sockets. Self-calling is explicitly rejected.

PropertyValue
ScopeHub (requires hub context)
PermissionRead (2)

Endpoint:

https://hostname/-/svc/signaling.dial

Parameters​

ParameterTypeRequiredDefaultDescription
targetobjectYes--
room_idstringYes--
room_typestringYes--
device_idstringNo--

Returns​

FieldTypeDescription
typeany-
descriptionany-
propertiesany-

Possible Errors​

Error CodeHTTP StatusDescription
Self calling is not allowed-The target uid matches the caller's own uid or ident