mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
black .
This commit is contained in:
@@ -5,7 +5,9 @@ from flask_socketio import join_room, leave_room
|
|||||||
def register_socket_handlers(socketio):
|
def register_socket_handlers(socketio):
|
||||||
@socketio.on("connect")
|
@socketio.on("connect")
|
||||||
def on_connect():
|
def on_connect():
|
||||||
current_app.logger.info(f"Socket {request.sid} connected from {request.environ.get('HTTP_ORIGIN')}")
|
current_app.logger.info(
|
||||||
|
f"Socket {request.sid} connected from {request.environ.get('HTTP_ORIGIN')}"
|
||||||
|
)
|
||||||
return True # Accept the connection
|
return True # Accept the connection
|
||||||
|
|
||||||
@socketio.on("disconnect")
|
@socketio.on("disconnect")
|
||||||
|
|||||||
Reference in New Issue
Block a user