createViewerSession function

ViewerSessionHandle createViewerSession({
  1. required ViewerSessionProvider provider,
  2. required String roomName,
  3. String? displayName,
  4. Duration pollInterval = const Duration(seconds: 5),
  5. Duration heartbeatInterval = const Duration(seconds: 30),
  6. void onChange(
    1. ViewerSessionSnapshot
    )?,
})

Implementation

ViewerSessionHandle createViewerSession({
  required ViewerSessionProvider provider,
  required String roomName,
  String? displayName,
  Duration pollInterval = const Duration(seconds: 5),
  Duration heartbeatInterval = const Duration(seconds: 30),
  void Function(ViewerSessionSnapshot)? onChange,
}) =>
    ViewerSessionHandle(
      provider: provider,
      roomName: roomName,
      displayName: displayName,
      pollInterval: pollInterval,
      heartbeatInterval: heartbeatInterval,
      onChange: onChange,
    );