From 7b837b96da877ddc29c3ca19a5aa7f9865890781 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Mon, 11 Nov 2024 11:46:17 +0000 Subject: [PATCH] fix acceleration websocket protocol --- backend/src/api/services/acceleration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/services/acceleration.ts b/backend/src/api/services/acceleration.ts index f625b7f15..0f43ee28c 100644 --- a/backend/src/api/services/acceleration.ts +++ b/backend/src/api/services/acceleration.ts @@ -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', () => {