Skip to main content
0 votes
0 answers
25 views

RevPi connection using Websockets

I am trying to connect a revpi to a windows pc to exchange input events using websockets. The server(revpi) looks as such: @app.route('/init', methods=['GET']) def initialize(): rpi.io.O_Unlock....
Ahmad Ali's user avatar
0 votes
0 answers
55 views

How can I implement multithreading in socketio and FastAPI?

I have a FastAPI application. When the user enters a room id on frontend then a dedicated worker thread is started for each room that emits the time every second to the frontend. Apart from emit event ...
nilay singh's user avatar
0 votes
0 answers
35 views

RuntimeError : Expected ASGI message 'websocket.accept' or 'websocket.close', but got 'http.response.start' [duplicate]

After updating my FastAPI version to fastapi[standard] to use fastapi-cli I got an error regarding sockets. I searched all the threads but couldn't find a solution. Could someone help me please? # my ...
KALAGA Serge Eric's user avatar
0 votes
0 answers
201 views

FastAPI 'reload' hangs and the application does not restart

I recently added sockets to my application, and since then the reload no longer works but gets stuck in the 'Shutting down' status Here is a screenshot of the logs in the application. Capture logs ...
KALAGA Serge Eric's user avatar
3 votes
1 answer
473 views

FastAPI RuntimeError: Expected ASGI message 'websocket.accept', 'websocket.close', or 'websocket.http.response.start' but got 'http.response.start'

I have server like: main.py import socketio from fastapi import FastAPI app = FastAPI() sio = socketio.AsyncServer(async_mode="asgi", cors_allowed_origins="*") sio_app = socketio....
Eugene Snopok's user avatar
0 votes
1 answer
42 views

flask-socketio server not connect to python-socketio client by polling

Q: I have a flask server application by flask-socketio, it is : from flask import Flask from flask_socketio import SocketIO app = Flask(__name__) # CORS(app, supports_credentials=True) app.config['...
elven mac's user avatar
0 votes
0 answers
78 views

Why Flask-SocketIO ends with 'Invalid session error'?

I'm testing the Flask-SocketIO package. My config is: Server: Synology NAS DS218J (unix) on local network, running the basic example over Python 3.9.14. Python script running on server: from flask ...
Ramon Ribes's user avatar
0 votes
1 answer
38 views

Python sockio SimpleClient fails to connect to python-socketio

I've got a python backend with python-socketio as server. I have a react application which can connect to it just fine. However, my python client app always raises a 'connectionError'. I need some ...
Edgar Koster's user avatar
0 votes
1 answer
365 views

Flask Blueprint with socketio configuration

My problem 🥲 I have a Flask app that I recently separated into blueprints as it grew in size. All of the app migrated well except for one thing - socketio. My goal is to have a socketio background ...
Guy Shalom's user avatar
0 votes
0 answers
51 views

Extra 0x00 at the start of TLS Client Hello packet, how to remove it?

I'm working on a Python proxy server that needs to receive TLS Client Hello data from a browser and forward it to the target server. However, I've noticed that the Client Hello packet sent by my proxy ...
user23352529's user avatar
0 votes
0 answers
32 views

Three digit encoding of socket.io messages using python-socketio

I'm currently reverse engineering an application that uses socket.io and engine.io v3 for it's communication. While looking at the websocket messages, I noticed that the messages contain three digit ...
Jurc's user avatar
  • 33
1 vote
2 answers
113 views

How should I correctly configure tasks when using sockets in python?

I have this small snippet which I intend to have function as a server, I have managed to get the socket to connect to the client but cannot send data due to errors. import asyncio import json import ...
KE Keronei's user avatar
0 votes
2 answers
68 views

Socket IO is rejecting requests from Nginx proxy

I have this docker application running several containers. One of these containers is a Python application that can handle both socket io requests and normal HTTP requests. Django's ASGI handles HTTP/...
lordsarcastic's user avatar
0 votes
1 answer
93 views

Gunicorn multiple workers + drf + socketio have only one connection

I am using socket-client using python-socketio in django-rest-framework. And drf is running as gunicorn on the centOS server with 3 workers. When I start my service, I can see only one connection. So ...
Hyeonwoo Park's user avatar
0 votes
1 answer
72 views

Trouble connecting to Ambient Realtime API using Python

I'm trying to connect to the Ambient Realtime API using Python and the socketio library, but I'm encountering an exception that states socketio.exceptions.ConnectionError: One or more namespaces ...
kyrlon's user avatar
  • 1,340

15 30 50 per page
1
2 3 4 5
16