Giter Site home page Giter Site logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
depends on issue 40

Original comment by [email protected] on 27 Mar 2013 at 11:59

from webiopi.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 16, 2024

Original comment by [email protected] on 4 Jan 2014 at 8:29

  • Changed title: Add WebSocket support

from webiopi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.