Jump to: navigation, search

Difference between revisions of "Zaqar/specs/websockets"

(Selected library)
m (Websockets library)
Line 9: Line 9:
 
There are several alternatives to use for the implementation of this feature, including:
 
There are several alternatives to use for the implementation of this feature, including:
  
- [http://autobahn.ws/ Autobahn]: Websockets / WAMP on Twisted and asyncio.  The server uses twisted which is something the OpenStack community has moved away from already.
+
* [http://autobahn.ws/ Autobahn]: Websockets / WAMP on Twisted and asyncio.  The server uses twisted which is something the OpenStack community has moved away from already.
- [https://github.com/sockjs SockJS]: Raw websockets. Javascript library. Don't seem to be maintained, the problems related to CORS and the fallback process doesn't work that well.
+
* [https://github.com/sockjs SockJS]: Raw websockets. Javascript library. Don't seem to be maintained, the problems related to CORS and the fallback process doesn't work that well.
- [http://socket.io/ SocketIO]: Wrapper for WebSocket. Javascript library.  
+
* [http://socket.io/ SocketIO]: Wrapper for WebSocket. Javascript library.  
- [https://github.com/Lawouach/WebSocket-for-Python ws4py]: Python package implementing the WebSocket protocol as defined in RFC 6455.
+
* [https://github.com/Lawouach/WebSocket-for-Python ws4py]: Python package implementing the WebSocket protocol as defined in RFC 6455.
  
 
Since that we need raw websockets, we leaved Autobahn and SocketIO aside. And given that SocketIO doesn't have a non Javascript library, we decided to go for '''ws4py'''.
 
Since that we need raw websockets, we leaved Autobahn and SocketIO aside. And given that SocketIO doesn't have a non Javascript library, we decided to go for '''ws4py'''.

Revision as of 14:48, 1 December 2014

Websockets

Fallback

Implementation

Websockets library

There are several alternatives to use for the implementation of this feature, including:

  • Autobahn: Websockets / WAMP on Twisted and asyncio. The server uses twisted which is something the OpenStack community has moved away from already.
  • SockJS: Raw websockets. Javascript library. Don't seem to be maintained, the problems related to CORS and the fallback process doesn't work that well.
  • SocketIO: Wrapper for WebSocket. Javascript library.
  • ws4py: Python package implementing the WebSocket protocol as defined in RFC 6455.

Since that we need raw websockets, we leaved Autobahn and SocketIO aside. And given that SocketIO doesn't have a non Javascript library, we decided to go for ws4py.