2 ms·
It's this simple if you had come across Tornado: class WebSocketHandler(tornado.websocket.WebSocketHandler): def on_message(self, message):
by zo1 12y ago
It's this simple if you had come across Tornado:
class WebSocketHandler(tornado.websocket.WebSocketHandler):
def on_message(self, message):
self.write_message("Echo: %s" % message)
I think the problem is that you chose a pretty heavyweight / complicated library.
- tim333 12y agoTa - maybe I'll give that a go. I didn't really try it. Actually I did glance at some docs for the framework I was using, web2py and it suggested some stuff with Tornado but one version only worked on chrome and another needed flash so presumably wouldn't work with iOS so I thought sod it - node/socket IO is easy and works anywhere.