Polling and Long Polling for Dummies – A Parallel Universe without Mailman: a 5 Minute Bedtime Story

This bedtime story may help you explain your kids (nieces, nephews, mother, grandmother, aunt, and other distant relatives) some of the issues with our world…

Posted in html5, WebSocket | Leave a comment

Webinar Recording: Build Real-Time Services in the Amazon Cloud with HTML5 WebSockets

Watch Ron Renwick, Sr. Product Marketing Manager discuss Kaazing’s cloud offering. The webinar also features a walk-through showcasing the steps of registering with Amazon EC2, launchnig, configuring, and accessing the Kaazing WebSocket Gateway in the cloud.

And here you can directly access the getting started screen cast, featured in the webinar.

Posted in cloud, Events, html5, Kaazing, WebSocket | Leave a comment

Inspecting WebSocket Traffic with Chrome Developer Tools

What makes working with WebSockets challenging at times is that the messages are extremely tiny and incredibly fast – making it hard to see them. ;-)

With the updated Chrome Dev Tools,  you can now see the WebSocket traffic coming and going to and from your browser without using tools like Wireshark. Here are the simple steps to make the invisible visible:

1. At the time of writing this post (May 8, 2012), you need to get Chrome Canary or a fresh Chromium build.
2. Navigate to the Echo demo, hosted on the websocket.org site.
3. Turn on the Chrome Developer Tools.
4. Click Network, and to filter the traffic shown by the Dev Tools, click WebSockets (all the way on the bottom).
5. In the Echo demo, click Connect.

6. Click www.websocket.org on the left, representing the WebSocket connection.
7. Make sure you’re on the Headers tab. This tab shows the WebSocket handshake.

Request URL:ws://echo.websocket.org/?encoding=text
Request Method:GET
Status Code: 101 Web Socket Protocol Handshake

Request Headers

Connection:Upgrade
Cookie:__utma=9925811.1340073179.1336513627.1336513627.1336513627.1; __utmb=9925811.4.10.1336513627; __utmc=9925811; __utmz=9925811.1336513627.1.1.utmcsr=websocket.org|utmccn=(referral)|utmcmd=referral|utmcct=/
Host:echo.websocket.org
Origin:http://www.websocket.org
Sec-WebSocket-Extensions:x-webkit-deflate-frame
Sec-WebSocket-Key:DIbT9axdUEPm89HWFqMAZA==
Sec-WebSocket-Version:13
Upgrade:websocket
(Key3):00:00:00:00:00:00:00:00
Query String Parameters view URL encoded
encoding:text

Response Headers

Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:content-type
Access-Control-Allow-Origin:http://www.websocket.org
Connection:Upgrade
Date:Tue, 08 May 2012 22:14:46 GMT
Sec-WebSocket-Accept:rKTyKcnJ105fv4ebnspiYbCB9ns=
Server:Kaazing Gateway
Upgrade:WebSocket
(Challenge Response):00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

8. Click the Send button in the Echo demo.

9. 
THIS STEP IS IMPORTANT: To see the WebSocket frames in the Chrome Developer Tools, under Name/Path, click the echo.websocket.org entry, representing your WebSocket connection. This refreshes the main panel on the right and makes the WebSocket Frames tab show up with the actual WebSocket message content.
Note: Every time you send or receive new messages, you have to refresh the main panel by clicking on the echo.websocket.org entry on the left.

The little arrow indicates the direction of the message, after the timestamp, op code, and mask you see the length and contents of the WebSocket message.

Posted in html5, WebSocket | Leave a comment

Free Webinar: Build Real-Time Services in the Amazon Cloud with HTML5 WebSockets

Join Ron Renwick, Sr. Product Marketing Manager at Kaazing for a free Webinar discussing how you can build real-time applications using Kaazing WebSocket Gateway on Amazon EC2, connecting your backend messaging systems all the way to the end user, leveraging the elasticity of the Amazon EC2 infrastructure.

To learn more, visit kaazing.com/cloud.

Posted in Events, html5, Kaazing, WebSocket | Leave a comment

Presso – a WebSocket Powered Social HTML5 Presentation Tool

At DevCon5 in Santa Clara Peter Lubbers, founder of the San Francisco HTML5 User Group, gave a keynote, titled The HTML5 Connectivity Revolution. For his presentation Peter used a WebSocket enabled presentation tool built by Kaazing, called Presso.

Presso serves as a prime example for the types of apps you can build using real-time Web technologies. Peter’s presentation could be followed along by the audience on their tablets and laptops. As Peter was advancing the slides, attendees saw the same animation on their screens. Presso also features a remote control, allowing the presenter to walk around in the room use a smart phone to advance the slides.

The demo uses the JMS Edition of the Kaazing WebSocket Gateway under the covers, making it very straight-forward to build peer-to-peer applications. Every time there’s a navigation command on the presenter’s machine, a message is sent to the viewers that in turn perform the same navigation: next or previous.

The presenter can advance the slides either directly through the keyboard or the remote controller (typically a smart phone).

The transition and page layout is managed by the excellent impress.js library, inspired by Prezi. This drawing describes the high-level topology. Red lines indicate messages sent and received to and from the WebSocket gateway.

And here’s a digest of the keynote from Presso’s perspective. The screen in the background shows the presenter’s laptop projected in the room. The brighter screen in the foreground is a tablet in the audience, following the presentation.

If you’re interested to learn about Web communication technology, you should watch Peter’s keynote presentation.

Posted in Events, html5, Kaazing | Leave a comment

Highlights of the New Kaazing Web Site

We’re very proud of the new dress kaazing.com got recently. While the design is brand new, there’s a lot of new content to be discovered as well.

Here are some of the highlights of the new site:

Posted in Kaazing | 1 Comment

DevCon5 Keynote: The HTML5 Connectivity Revolution

In this video from DevCon5Pro HTML5 Programming author Peter Lubbers is talking about the revolution in connectivity enabled by HTML5.

Peter explores what some of the major new feature areas are when it comes to HTML5 connectivity and real time and how those are changing how you will build modern web apps.

In his session Peter showcased a WebSocket enabled real-time HTML5 presentation tool, Presso, that allows the audience to follow along on their laptop and tablet devices. He uses his phone as the remote control, leveraging of course WebSockets.

Posted in Book, Events, html5, Kaazing, WebSocket | 1 Comment