Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dimxy opened this issue Jul 4, 2022 · 0 comments

Comments

@dimxy
Copy link
Owner

dimxy commented Jul 4, 2022

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

@dimxy dimxy changed the title tokel, websockets support, websocket.end does not disconnect from localhost ws node tokel with websockets support: js client does not disconnect from localhost ws node Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant