RTCForge API Reference v1.1.1
    Preparing search index...

    Type Alias ServerMessage

    ServerMessage: z.infer<typeof ServerMessageSchema>

    A message sent from the server to a client. The type field discriminates the variant; see MessageType for the meaning of each. Variants include room-joined (initial roster + ICE servers), peer-joined, peer-left, presence-online/presence-offline, signal, broadcast, error, ping, kicked, and role-changed.