Setting up the chat client functionality using SocketIO - Start

This commit is contained in:
Josako
2024-05-15 14:37:21 +02:00
parent 6f13d72261
commit ea23e8d327
10 changed files with 165 additions and 2 deletions

14
scripts/run_eveai_chat.py Normal file
View File

@@ -0,0 +1,14 @@
from eveai_chat import create_app
from gevent.pywsgi import WSGIServer
from geventwebsocket.handler import WebSocketHandler
app = create_app()
if __name__ == '__main__':
print("Server starting on port 5001")
http_server = WSGIServer(('0.0.0.0', 5001), app, handler_class=WebSocketHandler)
http_server.serve_forever() # Continuously listens for incoming requests