mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 01:41:01 +01:00
fix acceleration websocket protocol
This commit is contained in:
parent
c417470be2
commit
7b837b96da
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user