IntroductionIn the previous article, we saw how to host Websocket service as windows service.This time, we will learn the use of the low-level HttpListener class (System.Net.HttpListener), to start a self-hosted service. And the client we will be using is ClientWebSocket (System.Net.WebSockets).Environment : VS Professional 2012 RC, Windows 8 ServerI will break down this article into the following 2 simple steps:
A. Server - HttpListener
B. Client- ClientWebSocket
Build the solution.Update the solution properties, so that it runs both applications (Server first and then Client).
Run to test. (Make sure that you are running Visual Studio under Administrative rights.)
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: