Merge pull request #5630 from mempool/mononaut/fix-acc-websocket
fix acceleration websocket protocol
This commit is contained in:
commit
f0f6ee1919
@ -242,7 +242,7 @@ class AccelerationApi {
|
|||||||
while (this.useWebsocket) {
|
while (this.useWebsocket) {
|
||||||
this.startedWebsocketLoop = true;
|
this.startedWebsocketLoop = true;
|
||||||
if (!this.ws) {
|
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.websocketConnected = true;
|
||||||
|
|
||||||
this.ws.on('open', () => {
|
this.ws.on('open', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user