O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using socket communication in Silverlight

Applies to Silverlight 3, 4 and 5

Until now, all the communication with services has been initialized by the client. The Silverlight application makes a call to a service, which can be a WCF service, an ASMX service, or an RSS feed. After receiving the call, the service will start working by sending the response back to the Silverlight application. This kind of communication is typically carried out by HTTP, which is based on a request model. A response will be sent based on a request.

Sometimes, we need the opposite. The initiative needs to be taken by the server by pushing data to its clients. Initially, this client should register with the server, but from then on, the server can decide when it needs ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required