mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-18 21:44:41 -04:00
initial test socket io setup
This commit is contained in:
12
app/socketio_server/test_socketio.py
Normal file
12
app/socketio_server/test_socketio.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from flask import Blueprint
|
||||
from app import socketio
|
||||
|
||||
test_bp = Blueprint('test', __name__)
|
||||
|
||||
@test_bp.route('/test-emit', methods=["GET"])
|
||||
def test_emit():
|
||||
socketio.emit('job_update', {
|
||||
'job_id': 'abc123',
|
||||
'status': 'Test message from API'
|
||||
})
|
||||
return "Event emitted!"
|
||||
Reference in New Issue
Block a user