-
Notifications
You must be signed in to change notification settings - Fork 0
WebSocket Server Events
Nathan edited this page Jun 19, 2021
·
2 revisions
With Version 0.52, I have changed how events are broadcasted to clients connected to the WebSocket server. Each client, after connecting will need to send a Subscribe command to the server with the events it would like to receive. A sample request for subscribing is below, and all the events that are available is below that. You can also always call GetEvents to get all the events you can subscribe to.
{
"request": "Subscribe",
"events": {
"Twitch": ["Cheer"]
},
"id": "<your id>"
}These are the available events you can subscribe to.
{
"events": {
"general": [
"Custom"
],
"twitch": [
"Follow",
"Cheer",
"Sub",
"ReSub",
"GiftSub",
"GiftBomb",
"Raid",
"HypeTrainStart",
"HypeTrainUpdate",
"HypeTrainLevelUp",
"HypeTrainEnd",
"RewardRedemption",
"RewardCreated",
"RewardUpdated",
"RewardDeleted",
"CommunityGoalContribution",
"CommunityGoalEnded",
"StreamUpdate",
"Whisper",
"FirstWord",
"SubCounterRollover",
"BroadcastUpdate",
"StreamUpdateGameOnConnect",
"PresentViewers",
"PollCreated",
"PollUpdated",
"PollCompleted",
"PredictionCreated",
"PredictionUpdated",
"PredictionCompleted",
"PredictionCanceled",
"PredictionLocked",
"ChatMessage"
],
"streamlabs": [
"Donation",
"Merchandise"
],
"speechToText": [
"Dictation",
"Command"
],
"command": [
"Message",
"Whisper"
],
"fileWatcher": [
"Changed",
"Created",
"Deleted"
],
"quote": [
"Added",
"Show"
],
"misc": [
"TimedAction",
"PyramidSuccess"
],
"raw": [
"Action",
"SubAction"
],
"websocketClient": [
"Open",
"Close",
"Message"
],
"streamElements": [
"Tip"
]
}
}- Streamer.bot 0.63 (WIP)
- Streamer.bot 0.62 (current)
- Streamer.bot 0.61
- Streamer.bot 0.60
- Streamer.bot 0.59
- Streamer.bot 0.58
- Streamer.bot 0.57
- Streamer.bot 0.56
- Archives
- WebSocket Server
- HTTP Server
- UDP Server
- WebSocket Clients
- General
- Twitch Accounts
- Streamlabs
- Groups
- Events
- File Watcher
- Timed Actions
- Pyramids
- Quotes
- Sub Counter