Python implementation of the Socket.IO realtime client and server.
Questions tagged [python-socketio]
205 questions
0
votes
1 answer
The Socket.IO mounted on FastAPI app works fine when mounted on the root route ('/'), but encounters issues when changing it to '/ws'
The Socket.IO app, which is mounted to the FastAPI app on the root route ('/'), is functioning correctly. However, when I attempt to change the route from the root ('/') to '/ws', the Socket.IO functionality is not working as expected.
here is the…

bharat kundapur
- 1
- 2
0
votes
0 answers
Rasa SocketIO - How to wait for the socket reply and provide the response in a more synchronous way?
I use this validation to send and receive messages between the client HTML chat and the rasa chatbot. I am using threads to wait for the socket to receive a message, but this is blocking the code from running, when for example 2 chats are…
0
votes
0 answers
I can't chat with multiple users at the same time in my flask chat project
User1 received a message from user2 and user3, but the response message was sent to the user user1 last created chat with and is saving as such in the database. So I can't chat with more than one user at the same time.I am not getting any error.…

ayberk_duman
- 1
- 1
0
votes
0 answers
Binding Flask-SocketIO server to random port and retrieve address
First, thank you for this amazing library! Second, my apologies if this was somewhere in the documentation, I was unable to find a clean way to do what I want to do. I am very new to the project and so it is very possible I missed something.
My use…

Lnk2past
- 13
- 3
0
votes
0 answers
Using Django (+DB), Gunicorn, and Socketio, I cannot access Django database from multiple threads
I'm attempting to set up the traditional Django deployment stack (Django, Gunicorn, NGINX). I am also using socketio, similar to the example in the python-socketio documentation.
Unfortunately, the sockets do not play nice with the Django…

Langston Nashold
- 11
- 2
0
votes
0 answers
WSGI Server for Django + Python-Socketio
I have a Django server, that also has a socketio compenent using python-socketio library. I'm trying to produce a relatively simple but production ready deployment for it on an Amazon EC2 Instance. I've successfully configured the NGINX proxy.
I'm…

Langston Nashold
- 11
- 2
0
votes
2 answers
How to correctly install dependencies in MicroPython interpreters
I'm using Thonny, if there are better IDE's for working with python on microcontrollers definitely open to suggestions.
I have a node.js server using socket.io and express websocket server, that is correctly responding to clients.
For instance if I…

SaintPreston
- 103
- 6
0
votes
1 answer
Emit or call client outside of event handler with socketio
I tried to pass the sio instance to another class and send some calls from there to the client and when finished return back to the process_msg function.
But I guess since this is an async function, it won't work this way, I only…

the_walking_code
- 21
- 2
0
votes
1 answer
How can I render new Template with Flask Socket-IO join event?
I'm programming a litte multiplayer game with Flask Socket-IO. If the client is on the website, he connects to the websocket. On the start page the client should type a nickname in the field and press the button. Then the client tries to join a…

luca
- 3
- 1
0
votes
1 answer
How i can get the client ip when it connects to socketio and when they request a page on the website? - python
how i can get the client IP in eventlet + WSGI, socketio when someone connects to the web socket AND when the client request any page on the site?? i tried what i can find in the internet, it doesn't seem to work with me
code:
import socketio
import…

Shards-7
- 23
- 4
0
votes
0 answers
How to execute processes parallel for multi web user async socketio application
I am using a python socketio async server. I have several socketio.on processes that can occur in my backend. Each user in my website can send a socket to the backend and execute their own process however, in my terminal, each users process is…

tidekis doritos
- 47
- 6
0
votes
1 answer
How to execute processes in parallel for multi web user async application
I am using a python socketio async server. I have several socketio.on processes that can occur in my backend. Each user in my website can send a socket to the backend and execute their own process however, in my terminal, each users process is…

tidekis doritos
- 47
- 6
0
votes
0 answers
Async emitting taking very long time and sometimes doesnt emit at all
I have an async function that fires a emit everytime there is a new message. However sometimes it takes a very long time and if there are several new messages incoming then it doesnt emit all of them.
async def event_message(ctx):
…

tidekis doritos
- 47
- 6
0
votes
0 answers
What is maximum payload size in python-socketio and how to extend it?
I'm trying to send the bytes data of the raw FullHD 32-bit color depth frame (which is about 3.6MB) on the payload, while emitting event, to the server.
Here's the code handling that.
The data_chunk is a UstreamChunk object with its definition…

poisson
- 43
- 5
0
votes
0 answers
python socketio client "Invalid empty packet received"
I have flask-socket io server running with gevent and is able to connect from multiple machines but sometimes when i make client
connection with socket-io client it given error
[ERROR] ValueError: Invalid empty packet received
File…

Shobhit Bhatnagar
- 51
- 1
- 9