• Get a typed version of the global room Use this when you want the room with your specific message types

    Example

    const MyMessages = { ... }
    registerMessages(MyMessages) // Register first
    const room = getRoom<typeof MyMessages>() // Then get typed version

    Type Parameters

    Returns Room<T>