Skip to content

Commit

Permalink
fix(repeater): use appropriate event to manage scripts
Browse files Browse the repository at this point in the history
fixes #436
  • Loading branch information
derevnjuk committed Aug 22, 2023
1 parent 128f138 commit a5d0238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repeater/DefaultRepeaterServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export class DefaultRepeaterServer implements RepeaterServer {
public scriptsUpdated(
handler: (event: RepeaterServerScriptsUpdatedEvent) => Promise<void> | void
): void {
this.socket.on('update-scripts', (payload, callback) =>
this.processEventHandler('update-scripts', payload, handler, callback)
this.socket.on('scripts-updated', (payload, callback) =>
this.processEventHandler('scripts-updated', payload, handler, callback)
);
}

Expand Down

0 comments on commit a5d0238

Please sign in to comment.