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

Prevent multiple web socket connections being opened. #304

Merged
merged 2 commits into from
Nov 16, 2018

Conversation

achim-k
Copy link
Contributor

@achim-k achim-k commented Nov 15, 2018

When connect(...) was called on an already connected Ros instance, a new web socket connection was initiated and the previous one not closed. This patch makes sure that we only create a new connection if there is none yet or the current one has been closed.

Note that this is only done for WebSocket connection here. Should ideally be implemented also for the other transports.

@viktorku viktorku merged commit 1052c1f into RobotWebTools:develop Nov 16, 2018
k-aguete pushed a commit to k-aguete/roslibjs that referenced this pull request Oct 21, 2022
…cement. (RobotWebTools#304)

Has been in review for some time. Low risk change so merging.
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

Successfully merging this pull request may close these issues.

2 participants