sendVoiceSignal method

void sendVoiceSignal(
  1. String channel,
  2. VoiceSignal signal
)

Send a voice signalling frame to a room.

The frame is the caller's to build: everything in it comes from a media stack the engine deliberately knows nothing about.

Implementation

void sendVoiceSignal(String channel, VoiceSignal signal) {
  _alive();
  command({
    'type': 'send_voice_signal',
    'channel': channel,
    'signal': signal.toJson(),
  });
}