Skip to main content

All Questions

Tagged with
4 votes
1 answer
6k views

Python - NameError: name 'PROTOCOL_SSLv3' is not defined, when using gevent

So I had a Flask app on one machine in a virtualenv (raspberry pi running raspbian) and everything worked just fine, however when I ported it to another raspberry pi, also running raspbian, and set up ...
wg4568's user avatar
  • 319
32 votes
3 answers
28k views

Python - Flask-SocketIO send message from thread: not always working

I am in the situation where I receive a message from the client. Within the function that handles that request (@socketio.on) I want to call a function where some heavy work is done. This should not ...
Schnodderbalken's user avatar
1 vote
2 answers
1k views

Gevent - ImportError: No module named mako_templating

I’m following a video from 2012 - Gevent-socketio, cross-framework real-time web live demo (https://www.youtube.com/watch?v=zhh_N5pmHBY) I’m working on Ubuntu 15.04. At 8 mins, in init.py he ...
J-a-n-u-s's user avatar
  • 1,587
0 votes
1 answer
114 views

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/<path:remaining>') # socket.io endpoint def ...
kurtgn's user avatar
  • 8,762
2 votes
1 answer
574 views

gevent-socketio with Python bottle

I'm trying to put together a Python bottle application that uses gevent-socketio and am having trouble. I'm using the following versions of software: Python: 2.7.5 socketio: 0.3.5 socket.io.js: 1.3.5 ...
writes_on's user avatar
  • 1,915
4 votes
1 answer
2k views

gevent-socketio send message from thread

I would like to use gevent-socketio to send messages from a worker thread and update all connected clients on the status of the job. I tried this: from flask import Flask, render_template from flask....
Luke Yeager's user avatar
  • 1,430
7 votes
2 answers
1k views

SocketIO emit from Asynchronous Celery worker is not working

I am using Flask-SocketIO to create a real-time notification system. There is an external API server that calls the socketio server in a separate thread via an RPC. The method invoked by the RPC ...
Mitch Skiles's user avatar
0 votes
0 answers
132 views

How gevent socketio writing to client is a blocking call

I know reading from client is blocking call as we have to wait for the input from the user. But, how writing to the client is a blocking call? And also if i send two client messages, lets say msg1 ...
user160691's user avatar
3 votes
1 answer
1k views

Loop seems to break "emit" events inside Namespace methods [gevent-socketio]

since a few days I've been unsuccessfully trying to have some kind of loop in the server side that would allow me to update the client periodically, but it seems like if you put a loop into the server ...
javidgon's user avatar
  • 115
2 votes
1 answer
761 views

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....
fansonly's user avatar
  • 1,200
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
1 vote
0 answers
1k views

gevent timeout error on socket.io connection

I have a setup containing varnish nginx and 2 pyramid backends one of them running socket.io app. All the stack works correctly on my local development computer, but i can't get to work the websocket ...
SuNbiT's user avatar
  • 85
5 votes
3 answers
2k views

Multiple workers with gevent-socketio fails with xhr-polling transport because of sessions

I'm currently trying to scale gevent-socketio across multiple workers with the gunicorn server using the worker socketio.sgunicorn.GeventSocketIOWorker. I'm using websockets when it exists otherwise I'...
Karl Moodh's user avatar
  • 2,721
2 votes
1 answer
2k views

Python Gevent SocketIO memory leak disconnect not firing

I've been struggling with this for hours now. It's a pretty simple app, similar to a basic chat, except the server sends messages to the clients only. The basis of my problem is a memory leak. I ...
Matthew Scragg's user avatar
1 vote
1 answer
3k views

node.js socket.io-client + python socketio

I am trying to use Socket.IO to allow my Node.JS app to communicate with a Python Backend. I want Node.JS to act as the client and Python to act as the server, so I am using the socket.io-client Node....
ejang's user avatar
  • 4,062

15 30 50 per page