Home - HeroLiu183/WebSocketLab GitHub Wiki

What is in this example

This a Visual Studio 2013 Project have following example code

How to run the example

  1. Execute Server Code Execute Server Code.

  2. 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!!". init webSocket. Connect WebSocket.

  3. 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.

Open index.html by browser.

  1. the WebSocket Server will display all the received messages, you can use it verify your input!! Server.