rt events — raw catalog¶
This file is the websocket equivalent of the OpenAPI JSON for the REST apps: a flat machine-friendly enumeration of every named event known to the rt gateway, sourced from the live source tree. For prose / handshake / throttle docs, see ../rt-events.md.
Channels (libs/gateway/src/events.ts):
GATEWAY_CHANNEL.Server = 'server_channel_event' # server → client (broadcast / room / per-user)
GATEWAY_CHANNEL.Client = 'client_channel_event' # client → server requests
GATEWAY_CHANNEL.Private = 'private_channel_event' # admin-only RPC, never client-visible
Wire format from client perspective: server emits the bare event name (channel prefix is stripped by parseEvent). Internally the rt gateway forwards <channel>.<event> over Redis to the producing app.
Core lifecycle (apps/rt/src/gateway/events.ts)¶
ServerError
TimeoutError
AuthError
AuthSuccess
Unauthorized
Authorization # client → server method (re-auth on open socket)
api app (libs/shared/src/events/api.events.ts)¶
Server → client¶
BalanceUpdated
AffiliateClaimSuccess
UsersOnlineUpdated
ChatMessageUpdate
ProfileUpdated
BalanceTippedSuccess
LatestBets
BigWins
HighRollers
LuckyWins
MyBets
NotificationEventMessage
ValidationErrors
Client → server¶
LiveDropJoin
LiveDropLeave
ChatJoin
ChatLeave
ChatSendMessage
ChatGetMessages
ChatGetRooms
ChatAdminAction
LiveBetsJoin
LiveBetsLeave
NotificationGet
NotificationViewed
Private (admin RPC, bo-only)¶
EvoGamesPlay
EvoGamesRollback
AdminTipsTip
AdminTipsDeductBalance
AdminTipsFindMany
AffiliateFindManyUsers
AffiliateFindOne
AffiliateFindOneStats
UpdateSiteConfig
FaqGetAll
FaqCreate
FaqUpdate
FaqDelete
WithdrawFindMany
WithdrawApprove
WithdrawReject
WithdrawRetry
DepositFindMany
ApiKeyCreate
ApiKeyGet
ApiKeyDisable
UserLimitsCreateExclusion
UserLimitsDeleteExclusion
UserLimitsGetExclusion
UserLimitsSetGamblingLimits
UserLimitsGetGamblingLimits
LeaderboardGetSchedules
LeaderboardGetSchedule
LeaderboardUpdateSchedule
LeaderboardGetMany
LeaderboardGetUsers
LeaderboardGetUser
LeaderboardGivePrize
LeaderboardGet
BetFindMany
UserGetAll
UserGetAllRolesWithUsers
UserCreateAdminUser
UserGetAllPermissions
UserGetAllAdminsWithRoles
UserGetTopUsersByTransactions
UserUpdateUser
UserReplaceUserAvatarWithRandom
UserBanUser
UserUnbanUser
UserUpdateBalance
UserUpdateUserRoles
UserUpdateUserPermission
UserUpdateSingleUserRole
UserRevokeSingleRoleByTwitchUsername
UserGetFullStats
UserFindUniqueUser
RakebackFindMany
ChatAdminAction
LoggerGetLogLevel
LoggerUpdateLogLevel
RegistrationInfoFindOne
TransactionFindMany
(Plus the inherited internal events AuthSocket, ActiveUsers, Join, Leave, RequestClientEvents, ClientEvents, ServerError from GATEWAY_EVENTS.Private.)
bo, bj, speed-roulette¶
See:
- libs/shared/src/events/bo.events.ts
- libs/shared/src/events/bj.events.ts
- libs/shared/src/events/speed-roulette.events.ts
Each registry follows the same { Server, Client, Private } shape and is forwarded transparently through rt.
Authoritative grep¶
To regenerate this list: