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 support 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 you to validate received packets or manipulate packets on the server as you like.

What Diarkis Room Cannot Do

Diarkis Room is not a dedicated game server. It does not run games on the server. While you can implement game logic on the server, it is generally not suitable for implementing physics calculations or collision detection.

Features of Diarkis Room

Members can freely send and receive messages (broadcast) and share properties (values associated with the room that members can set and change).

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

Packet Exchange Diagram of Diarkis Room (Broadcast and Message)

The diagram below explains the broadcast and message mechanisms in Diarkis Room.

Diarkis Room offers two ways to exchange packets between room members.

Broadcast sends messages to all room members, while messages send messages to selected members in the room.

Diarkis Room Objects (State Synchronization)

Diarkis Room provides another way to synchronize members. Room objects can be freely created and modified by room members and are automatically synchronized.

Last updated