createViewerSession function
ViewerSessionHandle
createViewerSession({
- required ViewerSessionProvider provider,
- required String roomName,
- String? displayName,
- Duration pollInterval = const Duration(seconds: 5),
- Duration heartbeatInterval = const Duration(seconds: 30),
- void onChange()?,
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,
);