Home - HeroLiu183/WebSocketLab GitHub Wiki
What is in this example
This a Visual Studio 2013 Project have following example code
- WebSocket Client Code (index.html)
- Server Example Code (Program.cs)
How to run the example
-
Execute Server Code
.
-
Open index.html by browser Click the "Run WebSocket", if your browser support WebSocket will show alert "WebSocket is supported by your Browser!" then "socket is opened!!".
.
.
-
you can type your message on input box then click the "send" button, your message will send to server and message will be send back to your browser.
.
- the WebSocket Server will display all the received messages, you can use it verify your input!!
.