Questions tagged [gevent-socketio]

WebSocket-like abstraction that enables real-time communication between a browser and a server.

88 questions
3
votes
1 answer

Scale Gevent Socketio

I currently have a site setup using Django. I have added Gevent Socketio to add a chat function. I have a need to scale it as there are quite a few users already on the site and can't find a way to do so. I tried…
Crazyconoli
  • 641
  • 1
  • 6
  • 18
3
votes
0 answers

WebSocket generates error in django common middleware

I'm using Django + gevent-socketio + Haproxy. All socket functions works fine, but in background it generates the error shown like below. Seems like Haproxy's header for socket has very limited attributes which does not contain 'status_code' so it…
CIF
  • 1,754
  • 2
  • 18
  • 30
2
votes
0 answers

How to force gevent WSGIServer to listen both HTTP and HTTPS

I am able to access the application using HTTPS but how can i redirect it to listen http as well after converting it to https. When i am trying to access it using http, i am getting following error. ssl.SSLError: [SSL:…
2
votes
0 answers

Websocket/SocketIO for Django + ExtJS

I have multiple stores in ExtJS based application which I wish to update from Server (Websockets/SocketIO). The backend is Django. The only production-ready solution in Django for Websockets seems to be gevent-socketio. I explored…
Confused
  • 617
  • 1
  • 9
  • 17
2
votes
1 answer

Error using flask session data in SocketIO namespace

I am trying to listen to new socketIO connections on the user's id namespace. The user ID is stored in the flask session object. @socketio.on('connect', namespace=session['userId']) def test_connect(): emit('newMessage') This code is…
Jakobovski
  • 3,203
  • 1
  • 31
  • 38
2
votes
1 answer

Multiple namespace in gevent-socketio on django

I managed to make an application similar to the django chat example of gevent-socketio. However, when I add a namespace (class) in sockets.py I have the socketio error: 'no_such_namespace'. I need to add socketio_manage(request.environ, { '/chat':…
arthur.sw
  • 11,052
  • 9
  • 47
  • 104
2
votes
1 answer

Pushing notifications from a Django app with one server process

I have a Django app served by Gunicorn. I want to add WebSocket notifications to it, using PostgreSQL as the message queue and either gevent-socketio or tornadio as the WebSocket server. Can I use the same Gunicorn process to serve WebSockets? Or,…
Dor
  • 902
  • 4
  • 24
2
votes
1 answer

Socketio client switching to xhr-polling running with flask app

I'm running a socketio server with a flask app using gevent. My namespace code is here: class ConversationNamespace(BaseNamespace): def __init__(self, *args, **kwargs): request = kwargs.get('request', None) if request: …
fansonly
  • 1,150
  • 4
  • 14
  • 29
2
votes
1 answer

How to use messaging with pyramid_sockjs?

I'm building a Pyramid application using pyramid_sockjs. This app needs to react to incoming messages from redis pub/sub or rabbitmq. Where am I supposed to plug in the logic to listen to the messaging system and react by sending messages to sockjs…
ascobol
  • 7,554
  • 7
  • 49
  • 70
2
votes
1 answer

Starting django-socketio in production

I installed Django-socketio because it seems like the best way to implement chat by myself. The problem I have is that when I run python manage.py runserver_socketio host:port it runs and I can't close the terminal or it will stop working, how can…
rofls
  • 4,993
  • 3
  • 27
  • 37
2
votes
1 answer

Getting phantomjs, socket.io and gevent-socketio to work together

I am trying to build an application that utilizes Phantomjs 1.7 (simulating a browser) and create a Python back-end to fire up some events and collect data. The problem is that the two processes Phantomjs and my Python program need to communicate…
ren-dev
  • 21
  • 1
  • 3
2
votes
0 answers

Running Flask + Gunicorn + SocketIO

I am running SocketIOServer for my flask app and I have a run.py script which looks like this: import sys from idateproto import create_app, run_app if __name__ == "__main__": if len(sys.argv) > 1: create_app(sys.argv[1]) else: …
user1639848
  • 562
  • 5
  • 15
2
votes
0 answers

socketio_manage - NameSpace

Can anyone explain in detail about the gevent socketio_manage, What is namespace and how methods inside Namesspaces are called? I verified many documents online, but not got any clear description about socketio_manage
user2104391
  • 413
  • 4
  • 9
  • 18
2
votes
1 answer

Django Gevent integration

How to integrate Gevent with Django framework, What settings has to be modified in the Settings.py and wsgi.py files for the integration. I want to start gevent http server(port 8000) and gevent web socket server(port 9000) from the Django.
2
votes
2 answers

How make work werkzeug / custom error pages with flask + Gevent-socketio

I have a flask + Gevent-socketio mini website. Is launched: app = Flask(__name__) app.debug = True @werkzeug.serving.run_with_reloader def runServer(): print 'Listening on %s...' % WEB_PORT ws = SocketIOServer(('0.0.0.0', WEB_PORT), …
mamcx
  • 15,916
  • 26
  • 101
  • 189