dimxy / komodo

Komodo
https://komodoplatform.com/
Other
7 stars 4 forks source link

tokel with websockets support: js client does not disconnect from localhost ws node #115

Open dimxy opened 2 years ago

dimxy commented 2 years ago

A javascript nodejs client connected to a local websockets tokel daemon node does not properly disconnect: after client end getwspeers still shows the js client in the list daemon console shows a error: [info] Error getting remote endpoint: system:22 (Invalid argument) This does not happen when a client disconnects from a remote linux daemon Also a js client disconnects okay from a non-ws daemon node. That is, the issue is possibly in websocketspp lib or its usage by the daemon code Currently disconnect in js is done by a call to socket.end() and there is an event to catch 'close' (so it is not an early client app finish). I also tried to use socket.socket.close() call for the js websocket object but this also did not help