Core Server Internal Websocket Protocol Specification - dapucita/haxbotron GitHub Wiki

Core Server Internal Websocket Protocol Specification

The internal websocket should not be used outside the server.

JWT token(cookie) will be delivered when connection is established.

Path Description
/ws Websocket protocol

🖧 Handshake

JWT token will be inserted in access_token field via the http-only cookie.

🕹ī¸ Game Room Create/Terminate Event from Server

Event Name Description Content
roomct Create or Terminate notification JSON
Property Type Description
ruid string identify which room the notification came from

đŸšĒ Player Join/Left Event from Server

Event Name Description Content
joinleft Join or Left notification JSON
Property Type Description
ruid string identify which room the notification came from
playerID number player's numeric id

📜 Player Status Changed Event from Server

Event Name Description Content
statuschange Status changed notification JSON
Property Type Description
ruid string identify which room the notification came from
playerID number player's numeric id

This event is caused when player's team, admin, superadmin, mute, freeze, afk is changed.

📃 Log Event from Server

Event Name Description Content
log Log message from game rooms JSON
Property Type Description
ruid string identify which room the message came from
origin string log origins like onPlayerJoin, onPlayerChat event
type string log type: info, error, warn
message string log message

origin property

Origin Name Description
system log by system
initialisation initialisation of bot
updateAdmins change of a player's admin permission
super super admin player's action
autoOperating auto operating system
onGamePause In-game event
onGameStart In-game event
onGameStop In-game event
onGameTick In-game event
onGameUnpause In-game event
onKickRateLimitSet In-game event
onPlayerActivity In-game event
onPlayerAdminChange In-game event
onPlayerBallKick In-game event
onPlayerChat In-game event
onPlayerJoin In-game event
onPlayerKicked In-game event
onPlayerLeave In-game event
onPlayerTeamChange In-game event
onPositionsReset In-game event
onRoomLink In-game event
onStadiumChange In-game event
onTeamGoal In-game event
onTeamVictory In-game event