Applies to Silverlight 4 and 5
So far, we have looked at two technologies that allow us to perform duplex communications. In Chapter 7, Working with Services, we looked at how we could set this up using TCP sockets communication. The biggest advantage of using sockets is their speed. The second option is duplex WCF services, which is the focus of the previous recipe. Being WCF services, the programming model is much simpler. Based on contracts, we get typed access to the objects with which we're working. However, they rely on HTTP for their communication, resulting in slower speeds.
With Silverlight 4, a new option was added which brings the best of both worlds—WCF
net.tcp binding. We can ...