v3.0.12 - September 18, 2013
This release is completely devoted to the WebSockets support implementation in the JS SDK transport layer. This will make live updates instant for client apps. This technology is relatively new, but it's already supported in ~73% browsers (and growing fast).
For now, WebSockets support is disabled by default so there should be no noticeable changes to your app unless the feature is explicitly turned on.
Currently WebSockets support is implemented for "search" API updates only via the new "ws" API endpoint.
You can enable the new transport for the Stream and FacePile apps. In order to enable WebSockets support, please include the "liveUpdates" object in the app config.
Example:
new Echo.StreamServer.Controls.Stream({
...
"liveUpdates": {"transport": "websockets"},
...
});
In the case where Websockets is not supported by the client browser, the SDK will revert to the current Short Polling mechanism.
Important: we are releasing the WebSockets support in test mode, so please contact us at [email protected] before enabling it for heavy-traffic production sites. We will perform capacity planning if needed and will monitor the server side behavior to make sure that you get the best experience and performance.