Python implementation of the Socket.IO realtime client and server.
Questions tagged [python-socketio]
205 questions
1
vote
1 answer
AttributeError: module 'secrets' has no attribute 'token_bytes'
I am trying to set up a simple flask/socketio application however when I try and run it I get this error:
File "C:\Users\tompi\AppData\Local\Programs\Python\Python39\Lib\site-packages\flask\app.py", line 2464, in __call__
return…

Sigsby
- 47
- 5
1
vote
1 answer
wait keyword missing in Python socketio
Below is the code for connecting to server using python-socketio
import socketio
sio_bot = socketio.Client(logger =True,engineio_logger =True)
sio_bot.connect(IP,wait=False)
but I am getting an error as…

Prashant Kamath
- 13
- 2
1
vote
1 answer
flask-SocketIO 5.X Error:400 "The client is using an unsupported version of the Socket.IO or Engine.IO protocols "
It's my first time to use "flask-SocketIO" and I keep getting error 400 even while using the simplest code.
I'm trying to run the code locally on windows10
pip freeze:
WARNING: Could not generate requirement for distribution -rotli 1.0.9…

LoopingDev
- 754
- 2
- 10
- 32
1
vote
1 answer
How to synchronize socket SID on server and client?
I have python_socketio 5.0.4 on client and Flask-SocketIO 5.0.1 on server. When client connects to server, I would like to synchronize client's SID between client and server. However, when I print SID on client, it's different from SID printed on…

Michal
- 1,755
- 3
- 21
- 53
1
vote
1 answer
Issue with SocketIO, Python-SocketIO and Flask-SocketIO mistmatch
New to flask and sockets and learning from tutorials. I am having issues getting my client and server to talk to each other through the sockets. Receiving constant 400 errors.
I am running into what seems to be a common issue with version mismatches…

Verax
- 161
- 1
- 1
- 6
1
vote
2 answers
How can I install a specific version of socketio 4.4.0?
I have some issues with fxcm packages and I need to install python-socketio 4.4.0. However, pip cannot this version.
(base) C:\Users\murth>pip uninstall python-socketio
Found existing installation: python-socketio 5.0.4
Uninstalling…

junkone
- 1,427
- 1
- 20
- 45
1
vote
2 answers
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource in python to angular socket io
socketio can't get the data from python to angular front end it shows the error as
"Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://my ip:3000/socket.io/?EIO=3&transport=polling&t=NQtJeHE.…

Atul T Varghese
- 19
- 5
1
vote
1 answer
Docker SocketIO not found (Python)
When running my Python-SocketIO app normally, the SocketIO connection to the frontend works fine. In a docker container, it can't be connected to.
Output from Docker container:
======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to…

Ryan Cocuzzo
- 3,109
- 7
- 35
- 64
1
vote
1 answer
Flask-socketio doesn't recieve message from client
I'm trying to write a basic Socket.io program where the python client (python-socketio[asyncio_client] 4.6.0) emits a single string message to the flask server (with Flask-SocketIO 4.3.1 and eventlet).
The client appears to connect and send the…

Dakshin
- 437
- 1
- 6
- 16
1
vote
0 answers
socket.emit delay does not work in flask_SocketIO
I have flask_socketIO Python server:
from flask import Flask
from flask_socketio import SocketIO
import time
app = Flask(__name__)
sio = SocketIO(app)
@sio.on("client_connect")
def client_connect():
sio.emit("test")
time.sleep(1) # Should…

Michal
- 1,755
- 3
- 21
- 53
1
vote
0 answers
How Client send Messages to Each Other
Using Sockets in python i have made a Server-client socket server which just send messages from the clients to the server and I want send messages between clients .
My Code Looks Like this....
Server.py
import socket
import threading
import…

DikShU
- 96
- 1
- 10
1
vote
1 answer
python-socketio client fails to get public data but NodeJS socket.io-client does not
I am trying to download publicly available data from https://www.paymium.com/public. The data provider gives an example on their site on how to access data using NodeJS. The following program works.
var io = require('socket.io-client');
var socket…

user751978
- 11
- 1
1
vote
1 answer
Socketio installing problems
I'm facing a problem with socketio. I imported it into my programme by command:
import socketio
Wen I typped pip freeze I got:
python-socketio==4.5.1
Then I ran programme by typing into console:
myfile.py --mode "mode"
But it…
user13460335
1
vote
1 answer
Python-socketio: How to emit message regulary from server to client?
I want to send a message from server to client at 1 second intervals,
writing the string 'send clock' to console before the message is sent.
However, client does not receive "clock" message.
I have got the echo message is working fine, so it's not a…

Daiju
- 11
- 1
- 2
1
vote
1 answer
Is there a socketio client to connect to the supported message brokers in python-socketio?
I guess I was looking for one all be all python socketio module. Then as I start to use the message broker with socketio, the documentation demonstrated well, using redis. However, I find it odd that python-socketio client didn't show how to connect…

technicalstaffv2
- 61
- 1
- 4