WebSocketServer/modules/utils/definitions.go

13 lines
475 B
Go

package utils
const (
LenWebSocketSession = 36
LenRoomId = 36
WsCmdTest = 99999 // only for testing - userId is sent
WsCloseCodeNewConnectionWasMade = 11 // is sent when the connection is closed because a new connection has been established for the session (Example: The user has the app open in a browser tab and opens it in another tab, then the first tab is logged out and the second is the active tab)
RabbitMqWsCmdInternalDeleteWebSocketSession = 1
)