skeldjs
    Preparing search index...

    Class PlayerSetAuthoritativeEvent<RoomType>

    Emitted when a player becomes the host of the room.

    This event contains a setHost method that does not do anything in SkeldJS as the host of the room is decided by the server, making it impossible to alter the host as a client.

    A server implementation may implement this by overriding the functions in StatefulRoom responsible for updating the host.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    eventName: "player.setauthoritative" = ...
    player: Player<RoomType>

    The player that this event is for.

    room: RoomType

    The room or client that the event came from.

    eventName: "player.setauthoritative" = ...

    Accessors

    Methods