Reputation: 14379
I wish to have an embedded web socket server in my desktop application for communication with other applications.
From the research I've done, it would appear that in .NET 4.5 you can host a web socket server using IIS
Is it possible to host a web socket WCF service using something similar to ServiceHost
, or does it have to be through IIS? (I am pretty new to WCF)
I did some other libraries that implemented the websocket spec but was hoping to use inbuilt .NET functionality.
Upvotes: 0
Views: 1092
Reputation: 35895
You will need Windows >= 8 or >= 2012 to use Microsoft WebSockets. If you do have any of those Windows versions, use it. Otherwise you can use:
Cheers.
Upvotes: 1
Reputation: 854
Yes, it is possible. Look at http://msdn.microsoft.com/en-us/library/hh674271(v=vs.110).aspx Your WCF service could be self hosted and communicate via WebSockets.
It work on Win 8 and .Net 4.5
Upvotes: 1