Skip to content

Instantly share code, notes, and snippets.

@benjaminmbrown
Last active February 23, 2016 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminmbrown/54c81b13e737feb9852d to your computer and use it in GitHub Desktop.
Save benjaminmbrown/54c81b13e737feb9852d to your computer and use it in GitHub Desktop.
class WebSocketHandler(websocket.WebSocketHandler):
def open(self):
print 'Connection established.'
#close connection
def on_close(self):
print 'Connection closed.'
# Our function to send new (random) data for charts
def send_data(self):
print "Sending Data"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment