mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -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):
|
||||
@socketio.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
|
||||
|
||||
@socketio.on("disconnect")
|
||||
|
||||
Reference in New Issue
Block a user