subscribeRTCEvent method
Future<StreamSubscription>
subscribeRTCEvent(
- String eventName,
- dynamic eventMethod, {
- dynamic onErrorMethod,
Implementation
Future<StreamSubscription<dynamic>> subscribeRTCEvent(String eventName, eventMethod, {onErrorMethod}) async {
return EventChannel(eventName).receiveBroadcastStream(eventName).listen(eventMethod, onError: onErrorMethod);
}