Last active
February 23, 2016 02:11
-
-
Save benjaminmbrown/54c81b13e737feb9852d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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