...

Package roomSupport

import "github.com/Diarkis/diarkis/roomSupport"
Overview
Index

Overview ▾

func AfterRandomRoomCmd

func AfterRandomRoomCmd(callback func(uint8, uint16, []byte, *user.User, func(error)))

AfterRandomRoomCmd registers a callback function to be executed before random join room command: Must be called before ExposeCommands

func BeforeRandomRoomCmd

func BeforeRandomRoomCmd(callback func(uint8, uint16, []byte, *user.User, func(error)))

BeforeRandomRoomCmd registers a callback function to be executed before random join room command: Must be called before ExposeCommands

func DefineRoomSupport

func DefineRoomSupport()

DefineRoomSupport required to use roomSupport.ExposeCommands - This function MUST be called in HTTP server ONLY

func ExposeCommands

func ExposeCommands()

ExposeCommands exposes optional commands for room - room.ExposeCommands must be called BEFORE calling this function roomSupport.DefineRoomSupport() MUST be called in HTTP server for this function to work