Support for polling

Hello,

Does SmartClient provide support for polling the server? We have a need to request data from the server on a regular basis so the user doesn’t need to perform any action to see updates. Do we just use your Timer class for this?

server push support

Hello senordhuff,

SmartClient supports streaming updates to the client, aka “server push”, via the optional Messaging module.

The IRC Chat Example shows this system in action, talking to a real IRC server. If no one happens to be around, you can launch two browsers to talk to yourself.

Documentation for the Messaging module is available here: Messaging QuickRef

Examples of using the Messaging module, including source code, are available in the downloadable SmartClient SDK. With the SDK installed, from the SDK Explorer, choose “Examples” then “Simple Chat”.

SmartClient is also compatible with external server push systems. One of our clients has done successful integration with LightStreamer, for example.

Finally, although the Messaging module is simple and inexpensive, yes you can use the Timer class in combination with the RPCManager or DataSource layer to issue periodic requests to the server. If updates are infrequent and low update latency is not a requirement, this option may produce the lowest server load.

Please let us know if you have any more questions.