How To Set Up Diarkis Group On The Server

We explain how to set up Diarkis Group on the server so that the clients may call on the built-in Diarkis Group commands.

Setting Up Diarkis Group

You may set up Diarkis Group on UDP/RUDP, TCP, and WS (WebSocket) servers.

Setting up Diarkis is simple. You only need to expose the built-in commands to the clients.

Exposing Built-in Commands To The Clients

To expose built-in commands, you need to add the following code to your server main.go file BEFORE calling diarkis.Start().

// 必要なパッケージ
// github.com/Diarkis/diarkis/group
// github.com/Diarkis/diarkis/groupSupport

group.ExposeCommands()
groupSupport.ExposeCommands()