mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-06-16 19:35:24 +02:00
Basic websocket test on connect
This commit is contained in:
1
webapp/titanembeds/blueprints/gateway/__init__.py
Normal file
1
webapp/titanembeds/blueprints/gateway/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .gateway import Gateway
|
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