All Questions
25 questions
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 ...
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 ...
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 ...
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 ...
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
...
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....
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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'...
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 ...
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....