14 lines
375 B
Python
14 lines
375 B
Python
from flask import Flask, request, jsonify
|
|
from flask_socketio import SocketIO, emit
|
|
from handlers.http import init_http_handlers
|
|
from handlers.socketio import init_socketio_handlers
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
socketio = SocketIO(app,cors_allowed_origins="*")
|
|
init_socketio_handlers(socketio)
|
|
init_http_handlers(app)
|
|
|
|
if __name__ == '__main__':
|
|
socketio.run(app, debug=True) |