How to Set Up Diarkis Room

We explain how to set up Diarkis Room on the server and expose built-in Diarkis Room commands to the clients.

Diarkis Room can only be set up on TCP, UDP, and WS servers.

Setting up Diarkis Room on the server is very simple. You simply need to expose built-in commands.

How To Expose Built-in Commands

To expose the built-in Diarksi Room built-in commands, you must add the following lines of code to your main function of the server BEFORE invoking diarkis.Start().

// Required package
// github.com/Diarkis/diarkis/room
// github.com/Diarkis/diarkis/roomSupport

room.ExposeCommands()
roomSupport.ExposeCommands()

Last updated