Skip to main content

Module args

Module args 

Source
Expand description

Per-signal argument schema validation (gsp_rfc §6, §11).

Each signal type has defined arg requirements:

  • JOIN, LEAVE — args MAY be empty; no required keys.
  • ROLE_CHANGE — args MUST be a CBOR map with keys 0 (target_member_id) and 1 (new_role).
  • MUTE, UNMUTE — args MUST be a CBOR map with key 0 (target_member_id).
  • STREAM_START, STREAM_STOP — args MUST be a CBOR map with key 0 (stream_type).
  • CODEC_UPDATE — args MUST be a CBOR map with key 0 (codec_id).

Functions§

validate_args
Validates the args bytes for the given signal type.