Comments (6)
depends on issue 40
Original comment by [email protected]
on 27 Mar 2013 at 11:59
from webiopi.
FYI, After looking at some aspects behing COMET, long polling and Bayeux I
would prefer WebSockets as the most future-proof solution. Interestingly there
already exists a OpenSource library family that supports some very important
environments like Android, jScript and Python.
See e.g. http://autobahn.ws/ which would allow to make Android native apps
right away and salso provides a JS library.
Only caveat is that the Python version is relying on Twisted which is not
Python 3.0 ready afaik. Assume that CherryPy is.
You should make shure that the official RFC 6455 release of WebSockets is used.
Looks like this https://github.com/Lawouach/WebSocket-for-Python is providing a
WebSocket implementation for Python that can be used on top CherryPy for Python
2 and 3.
If I understand WebSockets right we still need some additional component that
forms the "wire protocol" that is used inside the WebSockets channel. But no
standards exist here, so it could just be the REST/JSON API that WebIOPi
already implements.
Andreas
Original comment by [email protected]
on 23 Apr 2013 at 9:18
from webiopi.
Maybe this http://wamp.ws/ is an interesting approach/example for such a wire
protocol that is highly compatible with what WebIOPi already does in the sense
of JSON usage for "*" requests.
Andreas
Original comment by [email protected]
on 23 Apr 2013 at 9:36
from webiopi.
don't worry about that ;)
I think to use websocket with classical long-polling fallback.
I will certainly implement the PubSub model on top of everything.
I'm thinking about cherrypy with ws4py, but not sure yet.
You are right twisted does not support python 3.
I don't know wamp.ws, I will check it.
Original comment by [email protected]
on 23 Apr 2013 at 4:47
from webiopi.
Checked wamp.ws, and its pink color remember me something.
I may have already seen it in my watch.
Well, it implement PubSub as well ;)
Now I have to remember why I don't retained it.
Original comment by [email protected]
on 23 Apr 2013 at 5:04
from webiopi.
Original comment by [email protected]
on 4 Jan 2014 at 8:29
- Changed title: Add WebSocket support
from webiopi.
Related Issues (20)
- NameError: global name 'GPIO' is not defined HOT 21
- Customzed HTML file is not loading HOT 2
- DAC MCP4921 HOT 1
- error 403
- Google Analytics enabled, not to be disabled (easily), not shown in documentation
- ~ HOT 1
- WebiOpi Tutorial_Basis don´t work for me HOT 1
- rpi.gpio not working after installing webiopi HOT 2
- Saving matplotlib figure
- Webiopi is not working on Raspberry 2 HOT 3
- POST set function to PWM not working HOT 1
- Cannot install Webiopi on RPi 2 HOT 1
- Apache HOT 1
- I cannot see all of the 40 raspberry pi pins on the Webiopi HOT 1
- gpio boxes greyedout
- ds2482 w1_bus_master2
- Nothing happens when i press the buttons on the default configuration HOT 2
- Cascade GPIO expander (74HC595)
- Cannot download off of the SourceForge website
- TypeError when using MCP4921 or MCP4922
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webiopi.