WCF services and clients can use the NetHttpBinding binding to communicate over WebSockets. WebSockets will be used when the NetHttpBinding determines the service contract defines a callback contract. This sour will help you to implement a WCF service and client that uses the NetHttpBinding to communicate over WebSockets.