Room Module

Overview

The Diarkis Room module creates a digital space where multiple users in remote locations can send and receive packets. This is a server-relay system that facilitates 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 implementing physics simulations 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 modify).

Diarkis Room manages and synchronizes "objects." These objects are associated with the room and can be freely added, modified, and deleted by the room's members. Unlike properties, all objects are automatically synchronized with the members' client devices.

Packet Exchange Diagram of Diarkis Room (Broadcast and Message)

The diagram below explains the mechanism of broadcasting and messaging in Diarkis Room.

Diarkis Room offers two methods for exchanging packets between room members.

Broadcasting sends messages to all room members, while messaging sends messages to selected members of the room.

Diarkis Room Objects (State Synchronization)

Diarkis Room offers another method for synchronizing members. Room objects can be freely created and modified by the room members and are automatically synchronized.

Last updated