def get(self): return model.all_events()
def connect(): """Return hostname of computer running Flask upon connecting""" flask.ext.socketio.emit("connected", platform.node()) flask.ext.socketio.emit("init", model.all_events())