Twitch.SharedChatSessionBegin{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "TwitchSharedChatSessionBeginEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"host": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/TwitchBaseUser"
}
]
},
"sessionId": {
"type": [
"null",
"string"
]
},
"isTest": {
"type": "boolean"
},
"participants": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/TwitchBaseUser"
}
}
},
"definitions": {
"TwitchBaseUser": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": [
"null",
"string"
]
},
"login": {
"type": [
"null",
"string"
]
},
"name": {
"type": [
"null",
"string"
]
},
"type": {
"type": [
"null",
"string"
]
}
}
}
}
}
{
"host": null,
"isTest": true,
"participants": [
{
"id": "in dolor ut in ullamco",
"login": "fugiat ullamco Duis non adipisicing",
"name": "incididunt exercitation",
"type": "occaecat voluptate ut"
},
{
"id": null,
"login": null,
"name": null,
"type": "nulla"
},
{
"id": null,
"login": "sit",
"name": "et laborum",
"type": null
},
{
"id": "anim in",
"login": "commodo non amet",
"name": null,
"type": "in commodo dolor ad"
},
{
"id": "nostrud",
"login": null,
"name": null,
"type": null
}
],
"sessionId": "voluptate ut"
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "Twitch.SharedChatSessionBegin" events and register a callback
client.on('Twitch.SharedChatSessionBegin', ({ event, data }) => {
// Code here will run every time the event is received!
console.log('Received event:', event.source, event.type);
console.log('Event data:', data);
});