WebSocket-like abstraction that enables real-time communication between a browser and a server.
Questions tagged [gevent-socketio]
88 questions
1
vote
0 answers
gevent-socketio - Error during WebSocket handshake: Unexpected response code: 401
I am working on a pyramid realtime app that would benefit from utilizing websockets. I found that the gevent-socketio library would probably be best for my purposes.
When testing locally on my PC, the websocket transport is used and runs just fine.…

Michael Battaglia
- 105
- 1
- 10
1
vote
1 answer
max_user_connections after gevent.monkey.patch_all()
I am using gevent-socketio v0.13.8 for a chat application on a django based web app. My database is MySql and have a max_user_connection = 1500 value. My socket server is daemonized with python daemon. I was using the socket server without monkey…

user3671924
- 31
- 4
1
vote
0 answers
Using same SSL certificate for Apache and socketio web server for same application
I am writing an in house application where my main web server is Apache web server hosting the main web portal which is being accessed by HTTPS. The certificates are self signed certificate and sites will not be accessed over internet but VPN may…

user3613103
- 11
- 3
1
vote
1 answer
Setting Flask-SockerIO to run in Gunicorn Server
I tried run the SocketIO server to run in Gunicorn in Ubuntu OS.
gevent
gevent-socketio
gunicorn
run.py
from views import app
from gevent import monkey
from socketio.server import SocketIOServer
import werkzeug.serving
monkey.patch_all()
PORT =…

user3110336
- 303
- 1
- 3
- 9
1
vote
1 answer
TypeError: wrap_socket() got an unexpected keyword argument 'policy_listener' | gevent-socketio
I'm new to python and I'm trying to test gevent-socketio examples with no luck.
I'm getting this error each time I access the html file. In this case, I'm posting the error reported from live_cpu_graph but chat has the very same problem.
Thanks for…

Daniele Vrut
- 2,835
- 2
- 22
- 32
1
vote
2 answers
Using gevent-socketio paster integration causes my application to be unresponsive
I am writing a Pyramid application that relies on gevent-socketio and redis. However, I noticed that when I navigate away from the view that establishes the socket.io connection, my application becomes unresponsive. In order to try and isolate the…

mmartinez
- 101
- 5
1
vote
0 answers
Is there a way to invoke the gevent-socketio BaseNamespace.emit server side
Is there a way to invoke the gevent-socketio BaseNamespace.emit on the server side since it uses environ['socketio'] to get the socket from the request.environ. How I can generate new virtual socket or emualate somehow the environ['socketio'] on the…

Velin Georgiev
- 2,359
- 1
- 15
- 21
1
vote
1 answer
Socket.io connections distribution between several servers
I'm working on DB design tool (python, gevent-socket.io). In these tool multiple users can discuss one DB model, receiving changes in runtime. To support this feature, I'm using socket.io. I'd like to extend number of servers that handle socket.io…

Marboni
- 2,399
- 3
- 25
- 42
1
vote
0 answers
Heartbeat timeout in gevent-socketio
I use gevent-socketio in my application. I need to get information about user disconnected even if he didn't finish session properly (calling socket.disconnect() from JS.) As I see from docs, SocketIOServer constructoor has parameter…

Marboni
- 2,399
- 3
- 25
- 42
1
vote
1 answer
Testing gevent-socketio on Django
I have a django site which uses gevent-socketio for a word game and I would like to automate the tests.
Since gevent-socketio implies user interaction and JavaScript actions I'm stuck in how to start writing tests.
Anyone can point me in the right…

Ander2
- 5,569
- 2
- 23
- 42
1
vote
0 answers
gevent-socketio: browser receiving another browser's response
I've been trying this for a couple of days now but I can't seem to wrap my head around this. My problem essentially lies with the fact if I have 2 browsers requesting at the same time, my server-side socketio response will return the wrong results…

super9
- 29,181
- 39
- 119
- 172
1
vote
0 answers
session management in clustered environment
I need to implement a site (HAProxy -> Varnish -> nginx -> uWSGI -> Pyramid, gevent-socketio, gevent -> Cassandra) over clustered environment with various servers and DBs, what would be the best session management technique I can use. I understand…

Dev Maha
- 1,133
- 1
- 11
- 24
1
vote
1 answer
Socket.IO : What is the recommended pattern for server side cleanup?
Is it enough to cleanup on disconnect? What happens if a browser disappears before sending an explicit disconnect?
What is the recommended pattern for server side cleanup, so that the resources bound to the connection are not leaked (e.g.…

Ziffusion
- 8,779
- 4
- 29
- 57
0
votes
1 answer
How many websocket clients can flask-socketio handle when in Gunicorn with gevent?
I am considering the following setup:
A "normal" flask app
A socketio app
Flask SocketIO
gevent with Gunicorn, using GeventWebSocketWorker worker class
a single gunicorn worker
If you're really curious, here's the source tying it all…

augray
- 3,043
- 1
- 17
- 30
0
votes
1 answer
TypeError: 'module' object is not callable while using Flask-SocketIO, uWSGI+gevent and Nginx. Can anyone help me to get out of this stuck?
I am using Flask-SocketIO, uWSGI with Gevent, and Nginx for the development of the WebSocket project and dockerizing this app as well. The simple run of my app is good but when I add uWSGI with Gevent, and Nginx it gives me an error which is…

Raza Ali
- 46
- 8