blob: 3097471afe90ab67a4a72dcf3dd8802f0a7b5ead (
plain)
1
2
3
4
5
6
7
8
9
10
|
from flask_socketio import join_room
from socket_io import io
from hierarchy import io_auth_required
# global socket connection
@io.on("connect")
@io_auth_required("none")
def connect(data, user_id):
join_room("user-" + user_id)
|