mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 20:25:25 +02:00
Basic websocket test on connect
This commit is contained in:
6
webapp/titanembeds/blueprints/gateway/gateway.py
Normal file
6
webapp/titanembeds/blueprints/gateway/gateway.py
Normal 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"})
|
Reference in New Issue
Block a user