fix acceleration websocket protocol

This commit is contained in:
Mononaut committed 2024-11-11 11:46:17 +00:00
1 parent c417470be2
commit 7b837b96da
1 file changed
+1 -1
+1 -1
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', () => {