Search KB Filter article types
Lightweight Comet control
By: ddks
Share |
Categories: Custom Controls
Tags: Architects, Developers, C#, XML, 2. Intermediate, 3. Advanced, AJAX, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
Revision: 1
Posted: 11/Jan/2009
Updated: 11/Jan/2009
Status: Publish
Types: Code

Hi all,

Attached is a custom control that will enable full blown comet (async) capabilities to your site. The custom control is a wrapper around the frozenmountain.com comet implementation. The control is using the hosted model provided by frozenmountain where the long-polling tcp connections are handled by their servers.

The demo is build using webgui 6.3.11

The demo app has

- WebSyncControl - custom control (really the client control but also has the server eventhandler for incoming messages) that needs to be added to a form with some connection info set (seem demo form1.cs)

- WebSyncManager.cs which is a c# class used to perform publishing

- WebSyncProxy.aspx which is needed if you want to use private keys for connecting/subscring to channels

This will add comet capabilities to you site in a manner of minutes!!

Ping me if you have any questions daniel[dot]dekkers[at]hotmail[dot]com

Cheers,

Daniel

 

 

Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


About the author

Related Articles

Custom Controls  
Title Update Author
I played a bit around with the new 6.4 ListView control, its quite amazing what you can do with it. It opens a lot of new ways to present data in a better and more userfriendly way.
Tags: Architects, Developers, Data Binding, C#, 2. Intermediate, 3. Advanced, Customization, Data Binding, v6.4 and Later
05/Jan/2010    2010/01/05
In this How to we are going to learn the basic usage of Visual WebGui RIA Platform Theme & Control designer.
Tags: Developers, Graphic Designers, Theme, 1. Beginner, 2. Intermediate, Customization, v6.4 and Later, 3. Advanced
04/Jan/2009    2009/01/04
Tags: Developers, Events, JavaScript, 1. Beginner, 2. Intermediate, Integration, Pre v6.3, v6.3, 3. Advanced
07/Jan/2007    2007/01/07
Tags: Developers, Events, JavaScript, 2. Intermediate, 3. Advanced, Integration, Pre v6.3, v6.3
11/Jan/2007    2007/01/11
Tags: Developers, Graphic Designers, Theme, 1. Beginner, 2. Intermediate, Customization, v6.4 and Later, 3. Advanced
06/Jan/2009    2009/01/06
Tags: Developers, Events, JavaScript, 3. Advanced, Customization, v6.3
09/Jan/2009    2009/01/09
 
2010 SD Times 100
   Ajax Framework | Web Applications | Cloud applications | Web Development | Silverlight Applications | Application Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®
   
Visual Studio Partners