Questions tagged [python-socketio]

Python implementation of the Socket.IO realtime client and server.

137 questions
2
votes
1 answer

ssl.SSLZeroReturnError: TLS/SSL connection has been closed (EOF) (_ssl.c:661)

This is my code: import ssl, socket server ='10.10.10.9' port = 50443 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ssl_sock =ssl.wrap_socket(sock,ssl_version=ssl.PROTOCOL_SSLv3) ssl_sock.connect((server, port)) return ssl_sock I am…
1
vote
1 answer

FlaskApp - Setup VS Code Debugger after install flask-socketio extension

I'm running a flask rest api using vscode as the IDE. I could setup the VSCode launcher in order to debug the application. launch.json { "name": "Python: Flask", "type": "python", "request": "launch", "module":…
1
vote
0 answers

How to configure mod_wsgi + apache2 to work with Flask + SocketIO?

I have an application that's using Flask and Flask-SocketIO. For now I was running it only locally but now I need to host it, in order to give access for other people. I have VPS with apache2 and mod_wsgi. For now it worked for me locally (I hide…
Mike
  • 11
  • 3
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…
1
vote
2 answers

SocketIO to emit to a particular user (without using separate room for every client)

I am trying to develop a web application that supports a long task at the backend. I am using flask-socketio package on my server along with celery. My workflow is following : When a client opens the Html page -- I initiate a socket connection to…
Naman
  • 185
  • 2
  • 13
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
  • 596
  • 1
  • 5
  • 24
1
vote
1 answer

Python-socketio Server.call() method does not seem to work with JavaScript client

Summarize the problem I am using the python-socketio package as a server for a web-based game that I am creating. I initially implemented the client in Python (with python-socketio[client]) for debugging purposes, and made extensive use of the…
eshapiro42
  • 89
  • 2
  • 6
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
  • 2,538
  • 4
  • 28
  • 51
1
vote
1 answer

Why python pickle does not work dos to unix?

Few days ago I coded a mini game to learn socket and threading. When I run my game server and client on windows it just works perfectly but when I moved my server file to my test server it gives me this pickle error: Exception in thread…
wiseking
  • 13
  • 3
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
  • 187
  • 1
  • 2
  • 10
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,079
  • 6
  • 20
1
vote
0 answers

How do I list all connected clients in flask_socketio?

Is there any way to list every sid connected to a flask_socketio server? Trawling through the API documentation, every function to list sessions requires a room, and every function to list rooms requires a sid in that room.
dataduck
  • 538
  • 3
  • 12
1
vote
1 answer

Problem in running Trio with Kivy and Socket.io

Currently, I'm trying to run Kivy, Socket.io as coroutine of Trio. It seems that Kivy UI showing the blank screen and seem to be unresponsive. Earlier, Kivy was working with Trio, after socket.io added, it became unresponsive. Provided Sample code…
Sanjiv
  • 653
  • 4
  • 12
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
  • 74
  • 8
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
2
3
9 10