Options
All
  • Public
  • Public/Protected
  • All
Menu

Use the getCommandClient method for the VideoClient to access the command channel client.

Index

Functions

Functions

  • Sends string text through the command channel.

    Example

     const cmdChannel = client.getCommandClient()
    cmdChannel.send('test', userId)

    Parameters

    • text: string

      The text to send.

    • Optional userId: number

      User to send to. If you don't pass a userId, the SDK sends the message to all users.

    Returns Promise<ExecutedFailure | CommandChannelMsg>

    ExecutedResult