Closed Blazheiko closed 1 year ago
do you receive the close message? or do you have any log?
I am not getting a closing message.In the websocket.js
file in the subscribe(url, callbacks)
method in the corresponding "close" event handler does not trigger the callback
to report the "close" event to the top
this has been fixed in the #129
Thank you
When working with a stream, the "close:" callback is not called.
websocket.js. ws.on('close', (closeEventCode, reason) => { if (!wsRef.closeInitiated) { this.logger.error('Connection close due to ${closeEventCode}: ${reason}.') setTimeout(() => { this.logger.debug('Reconnect to the server.') initConnect() }, this.reconnectDelay) } else { wsRef.closeInitiated = false } })