I am able to send socket.io events with this code: 
 https://gist.github.com/1375505

It's based off an answer I found on Stack 
Overflow<http://stackoverflow.com/questions/6692908/formatting-messages-to-send-to-socket-io-node-js-server-from-python-client>
.

With the code in that gist, you should be able to send one event to your 
node.js server.  If you have a long running Python script, you'll need to 
send heartbeat packets (with sio.heartbeat() ) every 15 seconds or you'll 
lose your connection to node.js.

This particular example is from a photobooth application I'm working on 
called PhotoPops.  http://myphotopops.com  There isn't much there right now 
as I just used it in public for the first time last Friday at a local 
event.  I think I'll make that Github repo public when I feel a little more 
confident about it.

Matt Gorecki

Reply via email to