initial test socket io setup

This commit is contained in:
Beverly Nguyen
2025-03-27 09:51:22 -07:00
parent 555b10d793
commit 16c68e06b9
3 changed files with 20 additions and 1 deletions

View 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!"