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 do I actively send data to the client in an external thread? #816

Open
XieShupei opened this issue May 7, 2019 · 1 comment
Open

Comments

@XieShupei
Copy link

I need to send data to all clients on a proactive basis, but I can't find a way.

@basitanwer
Copy link

for (it = m_connections.begin(); it != m_connections.end(); ++it) {
                m_server.send(*it, payload, sizeof(payload), websocketpp::frame::opcode::BINARY);

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