All Questions
14 questions
-1
votes
1
answer
72
views
frontend not displaying data emitted from socketio in real-time
my websockets app sends data fom the backend to the frontend. but it only updates whenever i refesh the page ,not real-time . I want the updating to be real time
my websockets app sends data fom the ...
0
votes
1
answer
356
views
Running a background task with python asyncio
I am building a websocket server in which I want to have a background task that receives messages from SQS and sends them to client while not blocking rest of the events.
But I keep getting this error,...
0
votes
1
answer
2k
views
The Socket.IO mounted on FastAPI app works fine when mounted on the root route ('/'), but encounters issues when changing it to '/ws'
The Socket.IO app, which is mounted to the FastAPI app on the root route ('/'), is functioning correctly. However, when I attempt to change the route from the root ('/') to '/ws', the Socket.IO ...
0
votes
1
answer
1k
views
In python how to catch all and every exception and error ever thrown anywhere
So, I'm familiar with try-except, however in this case it's not working.
I have a package, that uses socketio and asyncio.
The connection is done inside an asyncio task.
If the it cannot connect to ...
2
votes
1
answer
190
views
Socketio background task not running
I am creating a multiplayer online game, and am using socket io for the game server. Below is my server code
import socketio
import time
from aiohttp import web
sio = socketio.AsyncServer(async_mode='...
1
vote
1
answer
493
views
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(...
1
vote
0
answers
116
views
Async component with socketio blocks initalization
I've implemented a custom component for Home Assistant, which opens the SocketIO stream and feed the event bus with it.
Shorted version:
async def async_setup(hass: HomeAssistant, config: dict):
...
0
votes
1
answer
321
views
High Latency Python Socket.Io
I am currently using Python socket.io and aiohttp to make a Server. My client is a nodejs socket.io client. I have a thread which sends the current Time using the send function. The message from the ...
0
votes
0
answers
163
views
How can I handle different (via frontend requested) tasks asynchronously, without interrupting a running process?
I would like to implement the following setup, probably using Python/FastAPI as backend & JavaScript as frontend. So far I have used fast-api/socketio for bidirectional communication (between ...
0
votes
1
answer
664
views
Unexpected functionality working on Subscribing Redis channel in python
I'm new to manipulate connection with Redis server in python. I'm wondering that is there any way to figure out the situation below:
What I'm doing is
There are three mainly step for my program:
1. ...
0
votes
0
answers
567
views
Python AsyncIO stream reader not reading properly
I have created server which reads message and the client will write the message(which contain header
message concat with body) .However my server not reading properly, At first time reading entire ...
4
votes
0
answers
1k
views
CTRL+C does not terminate aiohttp app in Python 3.6 script on Windows
A simple Python 3.6 script using aiohttp and python-socketio and running on Windows 10 outputs the following when started:
======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to quit)
...
1
vote
0
answers
429
views
Socket.io client in python for distributed app
Do people use socket.io for distributed/network-based apps in python? Not just web apps but traditional client/server (running over http)? I have a flask python web server running socket.io, which is ...
9
votes
1
answer
13k
views
Understanding async await in python socket io / aiohttp server
I am trying to setup an socket.io server using python-socketio.
Here is a minimal working example:
import asyncio
from aiohttp import web
import socketio
import random
sio = socketio.AsyncServer(...