Help to implement websockets

39 views
Skip to first unread message

Gustavo A. León Tramontin

unread,
Sep 30, 2015, 1:55:16 PM9/30/15
to ChicagoBoss
Hi everyone

I've been doing some tests with websockets, and I have some things working now, such as sending messages from a client to the other connected clients, but now I have a question. How to send a message to all connected clients, directly from the server? It is the only question that has arisen me.

Many thanks :)

Dmitry Polyanovsky

unread,
Oct 2, 2015, 2:09:42 AM10/2/15
to ChicagoBoss
Hi,
you can look at Draw app https://github.com/mihawk/draw as working example for websockets in CB

Nick Garanko

unread,
Oct 2, 2015, 10:29:55 AM10/2/15
to ChicagoBoss
You may want to check my old project: https://github.com/ngaranko/game
Warning: not supported in any way, not documented and not very clear. But was working back then.

Idea is simple: each websocket connection registers in pool (arena process) and later you can send messages to all in pool using arena lib.
Something like this. Maybe there's better solution.

-Nick
Reply all
Reply to author
Forward
0 new messages