Websocket example in .Net 4.5

I am trying to create an example application that uses web sockets in .Net 4.5. based on the example given here: http://blog.davidpadbury.com/2011/01/13/wcf-websockets-first-glance/

I have a VS11 developer preview installed on Windows 7.

I could not understand which namespace WebSocketsService belongs to. It would be very helpful if someone could point me to a resource that has complete information to get websites running on .net.

Thanks. MK

+4
source share
2 answers

Have you downloaded and installed the WebSockets WCF prototype from HTML5 Labs ?

The Microsoft.ServiceModel.WebSockets namespace in the Microsoft.ServiceModel.WebSockets.dll assembly. After installing the prototype library, you can find the assembly.

+6
source

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.

+1
source

Source: https://habr.com/ru/post/1391863/


All Articles