Skip to content

Commit

Permalink
7TV Emotes 1.4.27
Browse files Browse the repository at this point in the history
* Changed: Add parameter for the websocket connection to indicate which client the connection originates from (in our case `ffz:<addon version>`)
  • Loading branch information
Lordmau5 committed Oct 27, 2024
1 parent 3a65eff commit 20f32c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/7tv-emotes/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main",
"clips"
],
"version": "1.4.26",
"version": "1.4.27",
"short_name": "7TV",
"name": "7TV Emotes",
"author": "Melonify",
Expand All @@ -14,5 +14,5 @@
"website": "https://7tv.app",
"settings": "add_ons.7tv_emotes",
"created": "2021-07-12T23:18:04.000Z",
"updated": "2024-10-24T18:38:10.025Z"
"updated": "2024-10-27T17:15:54.817Z"
}
3 changes: 2 additions & 1 deletion src/7tv-emotes/modules/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ export default class Socket extends FrankerFaceZ.utilities.module.Module {
this.log.info('Socket: Connecting to socket server...');
}

this.socket = new WebSocket('wss://events.7tv.io/v3');
const addon_version = this.parent.manifest.version;
this.socket = new WebSocket(`wss://events.7tv.io/v3?client=ffz:${addon_version}`);

this.socket.onopen = () => {
if (!is_planned_reconnect) {
Expand Down

0 comments on commit 20f32c1

Please sign in to comment.