| By Frank Salim | Article Rating: |
|
| December 16, 2008 10:12 AM EST | Reads: |
3,940 |
In older browsers, some of the benefits of Web Sockets can be attained through emulation. The Kaazing Enterprise Gateway enables full-duplex communication using several strategies. In the worst-case (the fallback mode) HTTP-based Comet techniques ensure that browsers can communicate bidirectionally with the Kaazing Enterprise Gateway. Even then, the Kaazing client libraries expose the standard Web Socket API, allowing browsers as old as Internet Explorer 5.5 to run applications using Web Sockets.
Whether using emulation or the native Web Socket protocol, applications written against the HTML 5 Web Socket interface can connect through the gateway to TCP servers for real-time messaging, mail, and chat.

Figure 1: Connecting to Google Talk through the Kaazing Enterprise Gateway
XMPP, the Extensible Messaging and Presence Protocol, is a popular protocol used by numerous chat servers and instant messaging networks. The Kaazing XMPP client library uses the Web Socket API in conjunction with the Kaazing Enterprise Gateway to connect to chat servers. Because of the gateway's ability to connect browsers to TCP servers, the chat servers can be unmodified daemons serving XMPP/TCP. This puts chat clients running in the browser on equal footing with desktop chat clients. Clients using an identical protocol on and off the web can connect to the same servers and message freely among themselves.
Online communities have provided mostly static forms of communication such as forums and message boards. This forced users to go out-of-band and use desktop instant messaging clients to carry out live conversations. Users have naturally discovered that IM can be an excellent complement to less immediate communication media. By incorporating web chat into their applications, Facebook and others have provided a more complete user experience inside the browser. Thus far, adding chat to web applications has been difficult.
Web Sockets provide the bidirectional networking chat needs. The concise, point-to-point socket API promotes simple and efficient end-to-end architectures. End-to-end architectures in turn improve scalability and interoperability with desktop chat clients. Best of all, this browser feature can be effectively emulated today on browsers that are nearly a decade old. In all, Web Sockets promise to simplify one of the greatest challenges involved in bringing real-time interactive applications such as chat to the web.
Published December 16, 2008 Reads 3,940
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Frank Salim
Frank Salim is a polyglot programmer with a keen interest in making life easier for his fellow coders. He leads WebSocket development at Kaazing and is the front man for Kaazing's open source project at kaazing.org. Salim is an open source advocate and a committer in several open source projects. He is a regular author and contributor to the online tech magazine Comet Daily.
- Kindle 2 vs Nook
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Confessions of a Ulitzer Addict
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Windows 7 – Microsoft’s First Step to the Cloud
- Ulitzer Provides a Powerful Social Journalism Platform
- Jill Tummler Singer, Deputy CIO of CIA, Keynotes at GovIT Expo
- Open Source Mobile Cloud Sync and Push Email
- Kindle 2 vs Nook
- The Difference Between Web Hosting and Cloud Computing
- Cloud Computing on Gartner's Top 10 List and SYS-CON Events' 2010 Calendar
- Ajax in RichFaces 3.3, JSF 2 and RichFaces 4
- Confessions of a Ulitzer Addict
- IBM Hardware Chief, Intel VC Exec Arrested in Insider Trading Scam
- My Thoughts on Ulitzer
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Ulitzer.com Named Exclusive "New Media" Sponsor of Cloud Computing Conference & Expo
- US Post Office Hops a Ride on NetSuite’s Cloud
- Moving Your RIA Apps into the Cloud: Seven Challenges
- Adobe’s Aiming ColdFusion at Multiple Clouds
- Building a Drag-and-Drop Shopping Cart with AJAX
- What Is AJAX?
- Google Maps! AJAX-Style Web Development Using ASP.NET
- Flashback to January 2006: Exclusive SYS-CON.TV Interviews on "OpenAjax Alliance" Announcement
- AJAXWorld Conference & Expo to Take Place October 2-4, 2006, at the Santa Clara Convention Center, California
- AJAX Sponsor Webcasts Are Now Available at AJAXWorld Website
- How and Why AJAX, Not Java, Became the Favored Technology for Rich Internet Applications
- "Real-World AJAX" One-Day Seminar Arrives in Silicon Valley
- AJAXWorld University Announces AJAX Developer Bootcamp
- AJAX Support In JadeLiquid WebRenderer v3.1
- Where Are RIA Technologies Headed in 2008?
- Struts Validations Framework Using AJAX



































