Room Server
This class provides a service that manages server operations related to rooms.
Methods
Parameters:
roomInfo
: ARoomInfo
object that represents information about the room to be created.
It creates the room.
Parameters:
conn
: The network connection of the client joining the room.roomInfo
: ARoomInfo
object that represents information about the room to be created.
Creates the room and adds the specified client to the room.
Parameters:
roomName
: Name of the room to join.
Joins the specified room.
Parameters:
conn
: The network connection of the client joining the room.roomName
: Name of the room to join.
Adds the specified client to the specified room.
Parameters:
conn
: The network connection of the client joining the room.isDisconnected
: Indicates whether the client is disconnected.
Adds the specified client to the room.
Parameters:
roomName
: The room name to be removed.forced
: It is used to lift the room by force.
Removes the specified room.
Parameters:
forced
: Used to forcibly remove entire rooms.
Removes all rooms.
Last updated