Basic websocket test on connect

This commit is contained in:
Jeremy Zhang
2017-08-19 05:09:13 +00:00
parent d7ac9fd9c9
commit 6b3ada44db
5 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1 @@
from .gateway import Gateway

View File

@ -0,0 +1,6 @@
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"})