Skip to content

Instantly share code, notes, and snippets.

@juliedavila
Created March 22, 2015 17:16
Show Gist options
  • Save juliedavila/a667bf73a1b167f98ed3 to your computer and use it in GitHub Desktop.
Save juliedavila/a667bf73a1b167f98ed3 to your computer and use it in GitHub Desktop.
websockets file for tutorial
# Copyright (c) 2014, Matt Makai
# All rights reserved.
# Full License can be read here: http://bit.ly/1qBgqzn
from flask.ext.socketio import emit
from . import socketio
@socketio.on('connect', namespace='/presentation')
def test_connect():
pass
@socketio.on('disconnect', namespace='/presentation')
def test_disconnect():
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment