Skip to content

Commit

Permalink
Expire old connection (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
brittcyr authored Nov 11, 2024
1 parent e6a3aef commit e6537b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions debug-ui/scripts/stats-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export class ManifestStatsServer {
}

private resetWebsocket() {
try {
this.ws.close();
} catch {}
// Allow old one to timeout.
this.ws = new WebSocket('wss://mfx-feed-mainnet.fly.dev');

this.ws.on('open', () => {});
Expand Down

0 comments on commit e6537b1

Please sign in to comment.