Lightweight Comet control
ddks posted on November 25, 2009 :: 368 views
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
Download Code
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...
- 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.
- 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.
- You may link to this code from another website, but ONLY if it is not wrapped in a frame.
- You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.