On Oct 18, 10:16 am, Denis Bilenko <
denis.bile...@gmail.com> wrote:
> On Tue, Oct 18, 2011 at 3:04 PM, frankentux <
cfarrell1...@googlemail.com> wrote:
> > I have a very simple gevent-websocket websocket broadcast server. The
> > idea is that it simply broadcasts messages it receives over zmq/socket
> > to all connected clients. It kind of works.
> > import zmq
>
> Should not you use gevent-zeromq here?
https://github.com/traviscline/gevent-zeromq
Thanks! That was it. Also, there is no need to append the connecting
clients to a list and to loop through the list to broadcast.
With the single edit that you suggested, everything works.
#!/usr/bin/env python
- import zmq
+ from gevent_zeromq import zmq