@fishjam-cloud/js-server-sdk - v0.29.0-rc.2
    Preparing search index...

    Type Alias ServerNotification

    ServerNotification: {
        [K in ExpectedEvents]: {
            notification: {
                channelAdded: Notification<"channelAdded">;
                channelRemoved: Notification<"channelRemoved">;
                peerAdded: Notification<"peerAdded">;
                peerConnected: Notification<"peerConnected">;
                peerCrashed: Notification<"peerCrashed">;
                peerDeleted: Notification<"peerDeleted">;
                peerDisconnected: Notification<"peerDisconnected">;
                peerMetadataUpdated: Notification<"peerMetadataUpdated">;
                roomCrashed: Notification<"roomCrashed">;
                roomCreated: Notification<"roomCreated">;
                roomDeleted: Notification<"roomDeleted">;
                streamerConnected: Notification<"streamerConnected">;
                streamerDisconnected: Notification<"streamerDisconnected">;
                trackAdded: Notification<"trackAdded">;
                trackForwarding: Notification<"trackForwarding">;
                trackForwardingRemoved: Notification<"trackForwardingRemoved">;
                trackMetadataUpdated: Notification<"trackMetadataUpdated">;
                trackRemoved: Notification<"trackRemoved">;
                vadNotification: Notification<"vadNotification">;
                viewerConnected: Notification<"viewerConnected">;
                viewerDisconnected: Notification<"viewerDisconnected">;
            }[K];
            type: K;
        }
    }[ExpectedEvents]

    A single decoded, mapped server notification tagged with its event type. The discriminated type lets consumers narrow notification to the matching payload (e.g. if (n.type === 'peerConnected') n.notification.peerType).