Questions tagged [python-socketio]

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

205 questions
0
votes
2 answers

socket.io works on local network but not when deployed on a vps server

I am creating an interface for a Random Number Generator. Just using the script on my machine, it works perfectly. But when I host the interface on a Server (IONOS VPS), it does not work properly. I can still access the interface and load the the…
0
votes
1 answer

Getting POST 400 Bad Request Error from the server only when deployed

I'm trying to make a small chat application and managed to deploy it to a EC2. After some struggling, I got the application running, but I noticed the delay was really high. At first I thought the reason for this delay was that I'm using a free…
0
votes
0 answers

Are socket.IO session IDs secure?

I recently found out that clients can "spy" on other clients and all of their communications by joining the room with the victim's session id. Is this secure? My usage of socket.IO involves sending temporary auth keys in the body to validate…
py660
  • 138
  • 11
0
votes
1 answer

How to block a python-socketio client until a server event response is received?

I'm trying to write a python script that connects to a nodejs server using socket.io package. The server receives the events from the client and responds with other events. As an example, let's say that the client sends an "getHome" events and the…
Nooneye
  • 13
  • 3
0
votes
1 answer

Different requests to same client at same time using Flask Socketio

I am creating an offline live dashboard for updating data from client to server using Flask. I have multiple data to update and it works well if I send them in a single request. But I have two types of requests and one updates slower than another.…
Athul R T
  • 130
  • 2
  • 11
0
votes
0 answers

Python integration aiogram + Socket.IO Server

The question arose how to correctly call the functions seo.edit(), so.and(), sio.call() in the aiogram function. Is it possible to implement such code somehow: ` @dp.message_handler() async def process_start_command(message: types.Message): …
Zevsus
  • 1
  • 2
0
votes
0 answers

The client is using an unsupported version of the Socket.IO or Engine.IO protocols

I am currently trying to connect server and client with flask_socketio, python-engineio and python-socketio. However, I'm getting the following error and I tried many solutions from here but it still doesn't work On the server: The client is using…
HTL
  • 3
  • 1
0
votes
0 answers

Flask, python-socketio in async_mode='eventlet'

I successfully used Flask and Flask-Socketio with eventlet on Windows. I want to add async / await to access Oracle. As Miguel Grinberg said Flask-Socketio didn't support async / await. Need to use python-socketio which uses asyncio. I successfully…
0
votes
0 answers

SocketIO vs AJAX for updating Flask webpage

So, here's what I have. A very simple Flask app, with one route that listens for POST and GET methods. I have a separate python script that is constantly outputting data. Right now, it is post'ing that data to the flask app, which takes that data,…
SkrillKill
  • 71
  • 5
0
votes
0 answers

How to integrate python-socketio events with Pyramid views?

I am working on a Pyramid python application which employs python-socketio to communicate with the frontend, but I find no information about how best to integrate the my Pyramid views and models with socket.io calls. I adapted python-socketio Flask…
pascalin
  • 1
  • 2
0
votes
1 answer

how to give response to flask request, which is obtained from a socketio event callback

I want to respond to a flask request, but the response is to be received from a socketio callback event. I am able to receive the response to an independent function, but unable to fetch it from there this is my main…
0
votes
0 answers

Python socketio connection refused by the server

import os import sys from django.core.wsgi import get_wsgi_application import socketio sio = socketio.Client() print('Created socketio client') @sio.event def connect(): print('connected to server') @sio.event def disconnect(): …
Prabhakaran
  • 3,900
  • 15
  • 46
  • 113
0
votes
1 answer

Python SocketIO Server- how do I trigger event from one namespace to another?

I have a two namespace I want to trigger event on second namespace once the first namespace event call is completed... (server side) I tried like this but didnt worked.... class FistNameSpace(socketio.AsyncNamespace): async def on_connect(self,…
Praveen
  • 346
  • 1
  • 6
  • 18
0
votes
0 answers

How to iterate over a loop to make multiple client connections with socket server async

Here I have the async code in python-socketio from the docs https://python-socketio.readthedocs.io/ I'm able to establish the single connection between client and server and emit few messages. but i just want to create more number of clients…
keto ja
  • 1
  • 1
0
votes
1 answer

Connect A Backend Python FastAPI with or without SocketIO Server with a Frontend React Client

Users may come across some difficulties with the effect that the mount path, socketio path, etc. have in getting a React frontend connected with a FastAPI+SocketIO or solo SocketIO server. Typically, they will encounter an error along the lines…