Hi folks, ive trying to use the C2 Websocket plugin with a Python + Tornado server to no avail.
Im using the connection string "ws://localhost:9999" and nothing happens... The 'On Connection Opened' event never fires BUT if i add an "On Connection Error" event C2 crashes with the following message:
<img src="http://i.imgur.com/RGNeaGR.png" border="0" />
Im not sure if im doing something wrong Server Side or C2 side.
Thanks for your help!
My server code is:
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
application = tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
application.listen(9999)
tornado.ioloop.IOLoop.instance().start()