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

Add a sample that sends messages to all connected tcp clients #234

Closed
dty717 opened this Issue Nov 19, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@dty717
Copy link

commented Nov 19, 2018

I get the message from spring mvc controller, and I want to send message to all the connected clients.
I use xml and not springboot.
and another question can i get the socket without any channel,any activator...

@dty717 dty717 changed the title How can I send message to all the connected clients How can I send message to all the connected tcp clients Nov 19, 2018

@garyrussell

This comment has been minimized.

Copy link
Member

commented Nov 19, 2018

GitHub issues are not for asking questions; they are for reporting bugs and asking for new features. Use Stack Overflow for questions.

Call getOpenConnectionIds() on the connection factory and, for each, set the IpHeaders.CONNECTION_ID property and send the message to the outbound channel adapter.

@dty717

This comment has been minimized.

Copy link
Author

commented Nov 19, 2018

but there is no code demo of you said,hard to find.

@garyrussell garyrussell changed the title How can I send message to all the connected tcp clients Add a sample that sends messages to all connected tcp clients Nov 19, 2018

garyrussell added a commit to garyrussell/spring-integration-samples that referenced this issue Nov 19, 2018

garyrussell added a commit to garyrussell/spring-integration-samples that referenced this issue Nov 19, 2018

artembilan added a commit that referenced this issue Nov 19, 2018

GH-234: Add TCP Broadcast Sample
Resolves #234

* Update top level README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.