fix acceleration websocket protocol

This commit is contained in:
Mononaut 2024-11-11 11:46:17 +00:00
parent c417470be2
commit 7b837b96da
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

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', () => {