mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2026-08-28 11:26:48 +02:00
Basic websocket test on connect
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .gateway import Gateway
|
||||
@@ -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