How To Create A Server With Custom Type

Diarkis has built-in server types as follows: HTTP, TCP, UDP, and WS.

You may create custom server types to separate your custom server(s) from the built-in servers.

HTTP server auto-detects available server types and handles them automatically.

This is useful when you want to create servers based on roles.

How To Set Custom Type

You will be adding the code to your HTTP, UDP, TCP, WS server code.

// Add this code to your main function before calling diarkis.Start()

mesh.SetNodeType("CUSTOM") // "CUSTOM" will be the node type

Last updated