Skip to content

Latest commit

 

History

History
47 lines (24 loc) · 906 Bytes

RPC.md

File metadata and controls

47 lines (24 loc) · 906 Bytes

RPC Requests

Valid communications between StreamMachine's master and slaves.

Master to Slave

config

Broadcast of an updated config. Slave is expected to reconfigure itself accordingly.

Expected response: None

status

Request for a stream status report. Used in slave sync checks.

Expected response: Hash containing timing information for the slave's stream rewind buffers.

audio

Broadcast of a chunk of stream audio data. Sent as {stream:KEY,chunk:chunk}.

Expected Response: None

Slave to Master

ok

Part of the initial connection handshake.

Expected response: "OK"

vitals

Request for a stream's "vitals" (ie emit duration and stream key).

Expected response: Vitals hash

log

Log entry being proxied to master. Expects an object with level, msg and meta

Expected Response: None

interaction

Analytics event being proxied to master.