All Questions
860 questions
2
votes
1
answer
26
views
SocketIO in React app does not capture emitted event
I am trying to build a Leaderboard that updates real-time based on redis stream events.
So I have this code in my frontend component that ultimately should be getting the latest updates real-time from ...
0
votes
0
answers
20
views
How to use socketio and ipc together in python
I am trying to building an server that communicates with the client using socketio protocol, Now the server starts multiple application as a sub processes, the server communicates with this ...
0
votes
1
answer
58
views
Connect to socket.io xhr request with python
I'm trying to retrieve some data from here, namely games and odds. I know the data is in the response of this GET request as shown in the network tab below:
However we can see that there is some ...
0
votes
1
answer
112
views
TCP connections in CLOSE_WAIT state not closing in the Microservice(FastAPI with Socket.IO) running as Uvicorn(ASGI Web Server)
Context
Microservice based out of FastAPI microframework with SocketIO server wrapped as ASGI application executed on Uvicorn Webserver.
The service has several socket events written to handle events ...
0
votes
0
answers
12
views
Flask-SocketIO and Vue: Stuck on Port 6114 Instead of 5114 — Hardcoded References?
I have a Flask-SocketIO backend (viewer.py) and a Vue frontend (using Vite). I’m trying to switch from port 6114 to 5114 for my socket connection, but can’t get the code to reflect that change. Even ...
0
votes
0
answers
21
views
Celery worker and socket io communication issues
I'm trying to make an app that has multiple socket connections and uses celery workers to periodically send messages to them. Here's the code:
app.py
from Controllers.MediaController import ...
0
votes
1
answer
38
views
How to use Flask-SocketIO with Phusion Passenger?
Phusion Passenger needs to launch the webserver using its own function, so a custom function to launch a webserver cannot be used, while SocketIO seems to require to use one. Is there is any way to ...
0
votes
0
answers
36
views
RuntimeError : Expected ASGI message 'websocket.accept' or 'websocket.close', but got 'http.response.start' [duplicate]
After updating my FastAPI version to fastapi[standard] to use fastapi-cli I got an error regarding sockets. I searched all the threads but couldn't find a solution. Could someone help me please?
# my ...
0
votes
0
answers
22
views
socketio.emit statement not updating browser when called from timer driven function
I'm quite new to Python and Flask and I'm writing a simple program for an online game where people join the game, the host enters a word into their admin area and the players have to guess the word. ...
0
votes
0
answers
32
views
Node.js socket io server disconnects python socket.io client after 30 seconds
Node.js socket io server disconnects python socket.io client after 30 seconds..
server sends this:
0{"sid":"6afJCYzsh1Yz3bh3AAAA","upgrades":[],"pingInterval":...
0
votes
1
answer
43
views
Patching server-side function in python-socket.io and testing client-side call
I'm trying to test a socket.io call.
I have a socket.io server mounted as app into FastAPI, which is up and running and communication is working.
Whenever I call foo(), that calls bar() directly in ...
0
votes
0
answers
26
views
Flask SocketIO not firing event
I have a flask app and using SocketIO i am trying to send an “alert” to a webpage. Which webpage the alert is sent to depends on which item the alert belongs to. The problem I am having is any message ...
0
votes
0
answers
35
views
Socketio emit doesn't work inside a thread
The title. I have this code with Paramiko and Flask Socket.io and the thread is not emitting the message:
from flask import Flask, render_template
from flask_socketio import SocketIO, send
import ...
1
vote
1
answer
43
views
SocketIO connection disconnects when sending data about 1mb over it through nginx proxy_pass
I've socketio connection in python flask that I can connect to it directly and send data over it without any problem, but when I use nginx as webserver and reverse_proxy and pass socketio connection ...
0
votes
0
answers
21
views
WebSocket Disconnects and "Unknown" Error on Firefox and Safari, but Works on Chrome
Sometimes, while chatting, I experience issues with the chat list. Occasionally, the WebSocket disconnects and shows "Unknown" on Firefox and Safari, but Google Chrome seems to work properly....