dazworrall / flask-sse Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I got this error trying the example included in the repo:
AssertionError: u'retry: 2000\n\n' is not a byte.
2013-04-30 00:57:08 [10097] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/gunicorn-0.17.4-py2.6.egg/gunicorn/workers/async.py", line 45, in handle
self.handle_request(listener, req, client, addr)
File "/usr/local/lib/python2.6/dist-packages/gunicorn-0.17.4-py2.6.egg/gunicorn/workers/ggevent.py", line 119, in handle_request
super(GeventWorker, self).handle_request(*args)
File "/usr/local/lib/python2.6/dist-packages/gunicorn-0.17.4-py2.6.egg/gunicorn/workers/async.py", line 98, in handle_request
resp.write(item)
File "/usr/local/lib/python2.6/dist-packages/gunicorn-0.17.4-py2.6.egg/gunicorn/http/wsgi.py", line 283, in write
assert isinstance(arg, binary_type), "%r is not a byte." % arg
AssertionError: u'retry: 2000\n\n' is not a byte.
How much eventsource clients where you able to connect on one flask-see instance?
I am right now evaluating different backend servers for EventSource. I was able to connect > 3000 clients through a node.js backend and send very stable messages to them. But 3000 seems very small to me, if I compare that with other protocols (mqtt, websockets) i tested.
What are the limits you experienced?
Thanks for this handy little project, but nowhere is mentioned the license of the code. Could you make it explicit?
It'd be nice to add flask-sse to pypi so it can be installed via pip, which makes deployment a little friendlier.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.