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

How does Spring mange websocket connections to broker? #48

Closed
yoav200 opened this issue Jul 20, 2014 · 2 comments
Closed

How does Spring mange websocket connections to broker? #48

yoav200 opened this issue Jul 20, 2014 · 2 comments

Comments

@yoav200
Copy link

yoav200 commented Jul 20, 2014

Hi,
As i understand each client eventually open a connection to the broker (i use RabbitMq),
can this be configured? can i limit the max connections?

@rstoyanchev
Copy link
Owner

To the broker it's TCP connections (rather than WebSocket) and they're managed with the TCP client from the Reactor project. The number of connections to the broker is equivalent to the number of connections from WebSocket clients. So to ask about limiting one is really to ask about limiting both/either.

@rstoyanchev
Copy link
Owner

To answer the question though there is nothing built-in. It shouldn't be too hard to achieve though. A combination of a HandshakeHandlerInterceptor perhaps plus an ApplicationListener counting SessionConnectedEvent and SessionDisconnectedEvent.

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

2 participants