No description, website, or topics provided.
Switch branches/tags
Nothing to show
Latest commit d74030a Mar 8, 2013 @jbalogh jbalogh fix line endings

Websocket client for protocol version 13 using the Tornado IO loop.

import websocket

class HelloSocket(websocket.WebSocket):

    def on_open(self):
        self.write('hello, world')

    def on_message(self, data):
        print data

    def on_ping(self):
        print 'I was pinged'

    def on_pong(self):
        print 'I was ponged'

    def on_close(self):
        print 'Socket closed.'

ws = HelloSocket('ws://')