Python implementation of the Socket.IO realtime client and server.
Questions tagged [python-socketio]
205 questions
2
votes
3 answers
Connection issues with fxcmpy REST api
I am using the REST api from fxcmpy to connect to my fxcmpy account.
Since the upgrade to version 1.2.6, I have issues with reconnection when I am accidentally deconnected from the server.
I detect deconnection through the…

johnnyp
- 119
- 9
2
votes
2 answers
python socket_io.emit() call from function
I am building a webserver application with aiohttp and python. For the exchange of data I'm using the socketio python implementation. For getting data from my frontend to my python script everything works as expected. Now I want to send some data…

Moritz Vierneusel
- 63
- 1
- 6
2
votes
1 answer
Secure communication between flask-socketio server and python-socketio
I am working on a project using flask-socketio and python-socketio. In order to secure the communication, the system needs to be upgraded with SSL. I am working with Mac and Python 3.7.
I created a certificate using openssl (rootCA.pem) and added…

Tyrion
- 405
- 8
- 22
2
votes
0 answers
High cpu usage on python socketio process with idle clients
When doing some tests with flask-socketio (on uwsgi with gevent) we noticed that when adding more clients, cpu usage on the socketio process quickly goes to 85%. The weird thing is that it doesn't seem to matter if the clients are in active…

Michielvv
- 336
- 4
- 13
2
votes
1 answer
How to use values sent from node.js server to python script client using python-socketio?
I use a node.js server to send data to python client.
Python's console display good receiving the data, but i can't find in documentation a way to use them in the Python's Client.
In Python's script console :
engineio.client - INFO - Received…

Jidé
- 45
- 4
2
votes
1 answer
How catch socket.io exceptions in python
I am working on a class project and we are trying to catch a socket.io exception. Specifically, socketio.exceptions.ConnectionError: Connection refused by server
The purpose of us doing this is to keep attempting to connect if not connection has…

dsot
- 21
- 2
- 3
2
votes
1 answer
Python-socketio: How to emit message from server to client?
On the server, since eventlet.wsgi.server(eventlet.listen(('', 5000)), app) is blocking, the next line sio.emit('message', "hello") does not run. How do I send message from server to client? Will I have to create another thread?
My server…

Arpita Karkera
- 83
- 1
- 8
1
vote
1 answer
Cannot connect to Socket IO server (400 error)
I cannot connect to my Socket IO server after uploading and configuring on the server. It is giving 400 error:
Error: Unexpected server response: 400
My server: Rocket Linux. Using Nginx. Socket Io server was written in Python. In my localhost it…

Ahror Gaibnazarov
- 45
- 6
1
vote
0 answers
Flask eventlet Dispatchermiddleware SSL
I have this Python code and i want to use SSL for the connection.
import socketio
from eventlet import listen, wrap_ssl
from eventlet.wsgi import server
from flask import Flask
from werkzeug.middleware.dispatcher import DispatcherMiddleware
app =…

Florian
- 66
- 4
1
vote
1 answer
Python socketIO callback is lost: `Unknown callback received, ignoring.`
I have a Flask-SocketIO server that connects with a number of python-socketIO clients. I want to know which clients are online. To get to know this, I am sending a ping event from the server with a callback function to process the response.
The…

Bart
- 190
- 2
- 8
1
vote
0 answers
Socket.io cross origin is not working while same origin is
I know there are quite a lot of questions on this and I've read many of them. But still not working and it looks like it should, because there is no visible issue. I have working application on https://mylocalhostdomain.com. There is UI layer and…

Honza
- 939
- 2
- 11
- 28
1
vote
1 answer
Socketio Server randomly delayed emit
A server utilizing python-socketio socketio.AsyncServer to handle very simple IO operations. Everything works:
Client sends message to check status
Server returns status
Problem
asyncio.run(sio.emit('status', repr(cb))), does not seem to reach the…

Hedge
- 13
- 2
1
vote
1 answer
python-socketio asyncio client: Is it possible to know when emit is completelly send data over the wire to server?
Do python-socketio or underlying python-engineio have any kind of confirmation that specific message was completely delivered to other side, similar to what TCP does to ensure all data was successfully transferred to other side?
I have kind of…

bialix
- 20,053
- 8
- 46
- 63
1
vote
1 answer
How to create multiple client connections using python-socketio client for load testing Flask-Socketio server
I would like to create around 10,000 clients and use them to send and recieve messages from Flask-Socketio server. I am using the default Flask Werkzeug development web server.
This is the app.py
from flask import Flask, render_template
from…
user15033700
1
vote
1 answer
Why is loop.create_task taking so long to execute?
I am trying to emulate the reading of a NFC chip by pressing the cmd key in a little python script that acts as a socket-io server. It's job is to notify a client after the cmd key has been pressed. It works, but emulate_nfc_tag() takes ages to…

Ben
- 43
- 4