I searched all day for examples that really worked. So, I decided to give a complete example of web sockets hosted from MVC4 in this blog post . It uses the easiest way using the Microsoft.WebSockets NuGet package. As far as I know. :( I hope a patch appears to make Windows 7 a suitable host.
source share