Skip to main content
Version: 0.21.0

Type Alias: NotificationEvents

NotificationEvents = { [K in ExpectedEvents]: (message: NonNullable<{ authenticated?: ServerMessage_Authenticated; authRequest?: ServerMessage_AuthRequest; componentCrashed?: Omit<ServerMessage_ComponentCrashed, "roomId"> & { roomId: RoomId }; hlsPlayable?: Omit<ServerMessage_HlsPlayable, "roomId"> & { roomId: RoomId }; hlsUploadCrashed?: Omit<ServerMessage_HlsUploadCrashed, "roomId"> & { roomId: RoomId }; hlsUploaded?: Omit<ServerMessage_HlsUploaded, "roomId"> & { roomId: RoomId }; peerAdded?: Omit<Omit<ServerMessage_PeerAdded, "roomId"> & { roomId: RoomId }, "peerId"> & { peerId: PeerId }; peerConnected?: Omit<Omit<ServerMessage_PeerConnected, "roomId"> & { roomId: RoomId }, "peerId"> & { peerId: PeerId }; peerCrashed?: Omit<Omit<ServerMessage_PeerCrashed, "roomId"> & { roomId: RoomId }, "peerId"> & { peerId: PeerId }; peerDeleted?: Omit<Omit<ServerMessage_PeerDeleted, "roomId"> & { roomId: RoomId }, "peerId"> & { peerId: PeerId }; peerDisconnected?: Omit<Omit<ServerMessage_PeerDisconnected, "roomId"> & { roomId: RoomId }, "peerId"> & { peerId: PeerId }; peerMetadataUpdated?: Omit<Omit<ServerMessage_PeerMetadataUpdated, "roomId"> & { roomId: RoomId }, "peerId"> & { peerId: PeerId }; roomCrashed?: Omit<ServerMessage_RoomCrashed, "roomId"> & { roomId: RoomId }; roomCreated?: Omit<ServerMessage_RoomCreated, "roomId"> & { roomId: RoomId }; roomDeleted?: Omit<ServerMessage_RoomDeleted, "roomId"> & { roomId: RoomId }; streamConnected?: ServerMessage_StreamConnected; streamDisconnected?: ServerMessage_StreamDisconnected; subscribeRequest?: ServerMessage_SubscribeRequest; subscribeResponse?: ServerMessage_SubscribeResponse; trackAdded?: Omit<ServerMessage_TrackAdded, "roomId"> & { roomId: RoomId }; trackMetadataUpdated?: Omit<ServerMessage_TrackMetadataUpdated, "roomId"> & { roomId: RoomId }; trackRemoved?: Omit<ServerMessage_TrackRemoved, "roomId"> & { roomId: RoomId }; viewerConnected?: ServerMessage_ViewerConnected; viewerDisconnected?: ServerMessage_ViewerDisconnected }[K]>) => void }

Defined in: packages/js-server-sdk/packages/js-server-sdk/src/ws_notifier.ts:70