Questions tagged [gevent-socketio]

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

88 questions
0
votes
1 answer

Why does flask_socketio.disconnect prevent the thread from completing?

I have the following system: [Client] - [Web Server] - [Connecotr]. A connector is a kind of intermediate code between a web server and a data source. I need to monitor the server connection with the connector. If the connection is lost, then I must…
ioprst
  • 187
  • 16
0
votes
0 answers

SocketIO. Not work separation on namespace

I have the following system: [Clietn] --- [Web Server (Flask)] --- [Data source]. The data source connects to the server and sends new data endlessly. The server, having received the new data, sends it to the client. The exchange is organized using…
ioprst
  • 187
  • 16
0
votes
1 answer

Can I use gevent-socketio with cornice?

I need some web socket functionality for monitoring some tasks, is gevent-socketio good fit for back end websocket implementation? Also can I use gevent-socketio with pyramid cornice (running on openshift)?
Tomas D
  • 103
  • 2
  • 10
0
votes
0 answers

Configuring nginx/gunicorn for uniform load balancing of websocket connections

Gunicorn design says: Gunicorn relies on the operating system to provide all of the load balancing when handling requests. With WebSocket requests, this is resulting in uneven load balancing of requests to the workers. that is, some workers handle…
vrtx54234
  • 2,196
  • 3
  • 30
  • 53
0
votes
1 answer

gevent-socketio how to originate messages from server

This is my code: class FirstNamespace(BaseNamespace): def on_some_event(self, msg): self.emit('ok '+msg) @app.route('/socket.io/') # socket.io endpoint def socketio_withpath(remaining): …
kurtgn
  • 8,140
  • 13
  • 55
  • 91
0
votes
1 answer

setting up gevent-socket using flask,nginx and gunicorn

The following is my python code from gevent import monkey;monkey.patch_all() from flask import Flask,render_template, url_for, request, redirect, flash,jsonify,session,Markup from socketio import socketio_manage from socketio.namespace import…
0
votes
0 answers

How to let two python scripts talking to each other

I have a gevent-socketio server program (similar to the simple-chat-example) running. There is a second python script on the same machine, which does motion detection and also runs endlessly. I want to let them both talk to each other and in some…
dube
  • 4,898
  • 2
  • 23
  • 41
0
votes
1 answer

Turbogears with gevent-socketio: request Key Error

I try to use gevent.socketio with my TurboGears 2 Website: in the ini-file i use [server:main] use = egg:gevent-socketio#paster transports = xhr-multipart, xhr-polling, websocket host = 0.0.0.0 port = 8080 when i try to access the controller in…
Doomsel
  • 1
  • 3
0
votes
0 answers

python gevent-socketio: connection refused from remote web

I am trying to replicate the example simple_chat in the gevent-socketio module gevent-socketio, simple_chat example. Every thing goes as it should when in chat.html the connection io is set to: // socket.io specific code var socket =…
Miguel Vazq
  • 1,459
  • 2
  • 15
  • 21
0
votes
2 answers

Cannot import name psyco_gevent

I have an import error with from psycogreen.gevent import psyco_gevent psyco_gevent.make_psycopg_green() it says: ImportError: cannot import name psyco_gevent I installed psycopg2 and psycogreen; and I followed this nice article about Django,…
arthur.sw
  • 11,052
  • 9
  • 47
  • 104
0
votes
1 answer

Django: How to customize an runserver_socketio command for manage.py

I'm writing a realtime chatroom similar to this package with Django. It runs a separate WebSocket server with command python manage.py runserver_socketio But I can't figure out how to make the runserver_socketio command load my handler. The only…
wlnirvana
  • 1,811
  • 20
  • 36
0
votes
1 answer

Emit/Broadcast Messages on REST Call in Python With Flask and Socket.IO

Background The purpose of this project is to create a SMS based kill switch for a program I have running locally. The plan is to create web socket connection between the local program and an app hosted on Heroku. Using Twilio, receiving and SMS will…
Bryant Wolf
  • 11
  • 1
  • 2
0
votes
0 answers

gevent-socketio emit or broadcast from python method

I use gevent-socketio library, and need to send message on post_save ... def post_save(self, obj, created=False): // broadcast message with data(obj) to channel How can i do this? EDIT: there is this example: from socketio.namespace import…
Mirza Delic
  • 4,119
  • 12
  • 55
  • 86
0
votes
0 answers

multibrowser chatting with flas-socketio

I am trying to create a simple multi browser chat web application. I thought I finished creating it. But when I try run it I get 500 status and Internal Server Error The server encountered an internal error and was unable to complete your request.…
Liondancer
  • 15,721
  • 51
  • 149
  • 255
0
votes
1 answer

Too many connections while using gevent socketio

I am getting too many connections (1040) when using gevent socketio. I am using monkey patch right now. Can I limit the number of threads(greenlets) created and make some jobs share the threads? I am using gunicorn and django.