Merge pull request #5630 from mempool/mononaut/fix-acc-websocket

fix acceleration websocket protocol
This commit is contained in:
wiz
2024-11-11 20:53:27 +09:00
committed by GitHub

View File

@@ -242,7 +242,7 @@ class AccelerationApi {
while (this.useWebsocket) {
this.startedWebsocketLoop = true;
if (!this.ws) {
this.ws = new WebSocket(`${config.MEMPOOL_SERVICES.API.replace('https://', 'ws://').replace('http://', 'ws://')}/accelerator/ws`);
this.ws = new WebSocket(`${config.MEMPOOL_SERVICES.API.replace('https://', 'wss://').replace('http://', 'ws://')}/accelerator/ws`);
this.websocketConnected = true;
this.ws.on('open', () => {