This experiment is very simple. We are going to develope a Graph in Silverlight
that receives realtime updates from another application through
Silverlight is one of the finest tool that is used to develope rich internet applications. In this experiment Silverlight is used to build a Graph that depicts the Monthly budget. Data-source for this graph is from another Silverlight application.
The magic of

In our case webpage that hosts the Flash chart is the client, listening to the
stock updates flowing through a specific
Include the
Following snippet will show you how instantiate a Pubnub class. You need to provide 4 parameters as follows
//Instantiate PubNub Class PubnubClass pubnub = new PubnubClass( "demo", // PUBLISH_KEY "demo", // SUBSCRIBE_KEY "", // SECRET_KEY false // SSL_ON? );
You need to have 2 keys namely - PUBLISH_KEY, SUBSCRIBE_KEY Grab your API Keys here.
Tune on to a specific channel and start listening to messages.
Make a call to the "Subscribe(<Channel>)" method on
pubnub.subscribe("test-channel");
Now Need to check for the incoming messages on the
object[] objArray = pubnub.ReturnMessage as object[];
Now Lets implement a simple Server application. Server Application is going to be another silverlight application that will perform the Publish.
The role of the server here is very simple. It will publish messages into a specific channel. Lets call it a Messaging Server. You can see the Messaging Server in the image below.

There are two inputs, Channel Name & Content to broadcast.
There is a button at the bottom, which will publish the message into the specified channel using a button at the bottom,
which will publish the message into the specified channel using
Publishing the message using
object obj = new List<double>() { {100}, {200}, {300} }; pubnub.publish("test-channel", obj);
Step 1. Instantiate the
Step 2. Make a call to the "Publish(<Channel>, <Message>)" method on
In our case the amount spent on different category of expenses are published through the channel to update the graph.
Click here to download the source code for this solution.
Author:
Kris.Ram, Integration Specialist
Minnesota, USA