Room Module
Overview
The Diarkis Room module creates a digital space where multiple users in remote locations can send and receive packets. This server-relay system is designed to enable fast-paced games.
A single Diarkis server can host multiple rooms created with Diarkis Room. Each room can be configured to allow a specific number of users to participate.
For technical details, please refer to the server API documentation.
Diarkis Room also serves as a TURN for Diarkis P2P (peer-to-peer) fallback.
What is Diarkis Room?
Diarkis Room is a relay server that allows remote users to exchange packets via the server. The server is customizable, enabling packet verification and manipulation of packets on the server as desired.
What Diarkis Room Cannot Do
Diarkis Room is not a dedicated game server. It does not run games on the server. While it is possible to implement game logic on the server, it is generally not suited for implementations requiring physics calculations or collision detection.
Features of Diarkis Room
Members can freely send and receive messages (broadcast) and share properties. Properties are values associated with the room that members can set and change.
Diarkis Room manages and synchronizes "objects." Like properties, objects are associated with the room and can be freely added, changed, and deleted by the room's members. Unlike properties, all objects are automatically synchronized with the members' client devices.
Diagram of Packet Exchange in Diarkis Room (Broadcasts and Messages)
The diagram below explains the mechanism of broadcasts and messages within Diarkis Room.
In Diarkis Room, there are two ways to exchange packets among room members.
Broadcasts send messages to all room members, while messages send messages to selected members of the room.
Diarkis Room Objects (State Synchronization)
Diarkis Room provides another method for synchronizing members. Room objects can be freely created and modified by room members and are automatically synchronized.
Last updated
Was this helpful?