-
Notifications
You must be signed in to change notification settings - Fork 0
Receive from Server
Mqx edited this page Oct 21, 2025
·
4 revisions
Use the following WebSocket endpoint for live log events. You can also subscribe to multiple channels at once or use no channel to subscribe to all channels at once.
Tip
Multiple channels (subscribe to Error and Warn simultaneously)
WS /console/log?channel=error&channel=warning{
"data": {
"timestamp": "2025-01-01T05:20:00.12345Z",
"threadName": "Main",
"threadId": "1234",
"logLevel": "warn",
"className": "",
"simpleClassName": ""
}
"message": "Player joined the game",
"errors": []
}If you don't specify any channel, this will subscribe you to all log events.
WS /console/logThis will subscribe you to only receive DEBUG log events.
WS /console/log?channel=debugThis will subscribe you to only receive INFO log events.
WS /console/log?channel=infoThis will subscribe you to only receive WARN log events.
WS /console/log?channel=warnThis will subscribe you to only receive ERROR log events.
WS /console/log?channel=error