Titan/webapp/titanembeds/blueprints/gateway/gateway.py
2017-08-19 05:09:13 +00:00

6 lines
201 B
Python

from titanembeds.utils import socketio
from flask_socketio import Namespace, emit
class Gateway(Namespace):
def on_connect(self):
emit('key', {'data': 'Connected', 'best_pone': "rainbow"})