Skip to main content

All Questions

Tagged with
1 vote
0 answers
67 views

How does Socket.IO work internally with AsyncRedisManager?

I have an application that uses Socket.io to implement websockets and is configured with Redis. The server side is written in Python, so I have something like this: REDIS = f"redis://{settings....
Diego L's user avatar
  • 928
1 vote
0 answers
231 views

Which is more efficient between Socket.io or WebSockets raw with Redis Pub/Sub?

I currently have an application that uses Socket.IO to send notifications in real time (using server-side Python). We have about 30 instances of the service that handles these websockets. However, we ...
Diego L's user avatar
  • 928
2 votes
0 answers
393 views

How can I emit socket.io messages from Redis rq-scheduler task?

I'm using flask and socket.io to build an app that queries an external API every 10 seconds, and emits the response to the users. I've set up rq-scheduler to run a function every 10 seconds to query ...
danthony's user avatar
2 votes
1 answer
302 views

Have channels coincide with rooms in Python-socketio, and general pubsub questions

I’m working on a project involving websockets using python-socketio. Our primary concern is fluidity, each connected user will have a cursor whose position on the board is sent as event every 50ms, ...
Luc Bertin's user avatar
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. ...
Heng-Shiou Sheu's user avatar
1 vote
2 answers
4k views

redis.exceptions.ConnectionError: Error 97 connecting to localhost:6379. Address family not supported by protocol

when ever i try to run my program following error will will raise. redis.exceptions.ConnectionError: Error 97 connecting to localhost:6379. Address family not supported by protocol. Previously the ...
johnson's user avatar
  • 31
0 votes
1 answer
670 views

Emit socket.io message with Python using nodejs as server

I need a bit of help. I'm doing tests to learn how to build a realtime web, so I use node.js with socket.io. All works fun but if I try to publish some message in the channel that is listening node ...
user2742735's user avatar
0 votes
1 answer
519 views

How to asynchrony get a real time data from redis by using python flask socket.io and threads?

My program collects data from sensors and sends this data to web interface, which shows it in real time graphs and sends some commands back. The problem is that data sending has a big delay or sends ...
Elijah's user avatar
  • 33
2 votes
1 answer
562 views

django saving messages to database via node server and socket.io

I have node server: var http = require('http'); var server = http.createServer().listen(4000); var io = require('socket.io').listen(server); var cookie_reader = require('cookie'); var querystring = ...
varad's user avatar
  • 8,059
3 votes
0 answers
400 views

redis with nodejs+socketio and python, message event fired twice?

I've set a nodejs server along with simple python script with redis-py. I have this on my nodejs server: var http = require('http'); var server=http.createServer(onRequest).listen(3000); var io = ...
user3599803's user avatar
  • 7,054
0 votes
1 answer
596 views

Can't modify the value of the session within event handlers for websockets events

I'm building a little flask&pyhon-based app and my main feature is based on websockets. I discovered that I can't modify the value of the sesssion within event handlers for websockets events(I'm ...
cristid9's user avatar
  • 1,188
1 vote
2 answers
602 views

Redis and socket to send to only some client

I have a server like this in node.js: socket.on('connection', function(client) { const subscribe = redis.createClient(6379, '127.0.0.1') subscribe.psubscribe('kitchen_*'); ...
pynovice's user avatar
  • 7,752
1 vote
1 answer
3k views

Asynchronous Django using django-websocket-redis

I'm trying to use django-websocket-redis and I didn't understand how it works even reading the doc.. The part client (javascript/template) was easy to understand but I want to send data messages from ...
tamorim's user avatar
  • 13
0 votes
1 answer
2k views

Redis Pub/Sub with Python backend and Socket.io

I have a PHP code which publishes data to a channel called "MESSAGE_FROM_MARS". The snippet is as follows : function send_data_to_check_spam($feedback) { $d_id=$this->...
sniper's user avatar
  • 2,943
4 votes
2 answers
4k views

Flask: Unable to access current_app from within socket.io listener

I am trying to access current_app from within the listener so that I can use app config values for which channel to subscribe to. However I receive "RuntimeError: working outside of application ...
Chris's user avatar
  • 73

15 30 50 per page