broadcastCustomEvent method

Future<void> broadcastCustomEvent(
  1. Map<String, dynamic> arg
)

Broadcasts a CustomEvent to all WebSocket clients. Receivers are clients which are identified and subscribed.

  • Complexity Rating: 1/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<void> broadcastCustomEvent(Map<String, dynamic> arg) async =>
    await obsWebSocket.sendRequest(Request(
      'BroadcastCustomEvent',
      requestData: arg,
    ));