WebSocket-like abstraction that enables real-time communication between a browser and a server.
Questions tagged [gevent-socketio]
88 questions
1
vote
1 answer
Flask Socket - Invalid session lWmxdNRmai59bRfLAAAA (further occurrences of this error will be logged with level INFO)
I am trying to use flask socket.io in docker with basic commands.
When i am running single worker of gunicorn everything is working fine but when i increase the workers, then on the client side it start giving 400 Bad Request and on server logs i…

Shobhit Bhatnagar
- 51
- 1
- 9
1
vote
1 answer
How to deploy flask with socketio to heroku and have it upgrade to websockets
Locally, it works. Socketio upgrades to websocket instead of resorting to polling.
This is obvious from the logs:
...
FYnWEW0ufWGO7ExdAAAA: Received request to upgrade to websocket
FYnWEW0ufWGO7ExdAAAA: Upgrade to websocket successful
...
Upon…

Sebastian Nielsen
- 3,835
- 5
- 27
- 43
1
vote
0 answers
Correct way to use flask socketio, eventlet with multiple multiprocces
I want to know if am going the right way how to work with flask socketio, eventlet with multiple multiprocces.
I have multiple procces to handle camera streams with gstreamer, each proc write frames and meta data to redis.
My main programm use…

Christoph Acs
- 51
- 4
1
vote
2 answers
Integrating Zope with socket-io
Is there a way of integrating Zope 2 (2.13.19) using Python 2.6.8 with socket-io ?
I've found https://python-socketio.readthedocs.io/en/latest/ but it doesn't seem to fit the requirement.

Ravi
- 2,472
- 3
- 20
- 26
1
vote
0 answers
gevent fd must be non-negative: -1
I am using django-websocket-redis to setup websocket. Also using nginx and docker. I followed what mentioned in the usage, got error when trying to hit the server from client.
Here is my nginx.conf
location /api {
include …

Aj1
- 953
- 2
- 15
- 42
1
vote
0 answers
socket.io doesn't work on EC2
I'm doing a new feature that allow show system logs on admin page. I'm using gevent-socketio (0.3.6). Everything works fine on my local machine but when i deploy my code to EC2, it doesn't work.
Here is client code:
// notification socketio
var…

DonerKebab
- 500
- 4
- 13
1
vote
1 answer
key-error: 'socketio' in gevent-socketio + django chat app implementation
I was trying to implement the example of gevent-socketio django chat app from the official git repository. With python 2.7.6, django 1.9.2 and socket.io 1.4.5. @https://github.com/abourget/gevent-socketio/tree/master/examples/django_chat.
The…

Asif Mahmud
- 23
- 5
1
vote
0 answers
alternative spawn() method in gevent-socketio
I use gevent-socketio in project. I need use gevent.spawn() method with function which listen redis queue. It not works cause spawn() waiting end of work function.
Are there any alternative spawn() method in gevent-socketio?

Nick Mishustin
- 19
- 1
1
vote
0 answers
Python non-blocking subprocess output read not capturing all output
Hoping someone can help with this:
def non_block_read(output):
fd = output.fileno()
fl = fcntl.fcntl(fd, fcntl.F_GETFL)
fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
try:
return output.read()
except:
return…

Charlie
- 1,646
- 5
- 22
- 40
1
vote
1 answer
how to use threading with a 'neverending' process
I'm attempting to add an irc client to a django web application I'm working on. I'd like the server side code for the irc communication to use python and connect through the sockets library. I'll then use gevent-socketio to send and receive data…

beatsbears
- 201
- 2
- 7
1
vote
0 answers
flask-socketio doesn't see overridden resource
This is a simple flask-socketio server:
from flask import Flask, render_template, request
from flask.ext.socketio import SocketIO, send, emit, join_room, leave_room
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio =…

kurtgn
- 8,140
- 13
- 55
- 91
1
vote
0 answers
socket.io upgraded from 0.9.6 to 1.3.5 sends wrong requests
I had a small sandbox server on gevent-socketio.
The backend was
from flask import Flask, render_template, request
from socketio import socketio_manage
from socketio.namespace import BaseNamespace
from socketio.server import SocketIOServer
class…

kurtgn
- 8,140
- 13
- 55
- 91
1
vote
1 answer
How do I broadcast from a non-SocketIO request to all SocketiO clients connected?
I'm running the SocketIO server with something like:
from socketio.server import SocketIOServer
server = SocketIOServer(
('127.0.0.1', '8000'),
resource='socket.io',
)
server.serve_forever()
I then have a namespace:
class Foo(BaseNamespace,…

Belmin Fernandez
- 8,307
- 9
- 51
- 75
1
vote
0 answers
Gevent-socketio wildcard namespace
Is there any way in gevent to enable wildcard namespace? Maybe something like namespace/**wildcard**. I tried to look at gevent's documentation:
from socketio.namespace import BaseNamespace
class ChatNamespace(BaseNamespace):
...
def…

Daniel Hyuuga
- 446
- 1
- 5
- 13
1
vote
1 answer
Implementing django-socketio iOS client
I want to make a chat app using Django in iOS. The server-side socket communication method that I've chosen is django-socketio because it integrates well with django. So my problem is selecting a way to implement the client side on iOS. All the…

raj
- 187
- 1
- 11