Browse Source

Modified a bit for Program.cs

pull/113/merge
sta 10 years ago
parent
commit
ad41099180
  1. 10
      Example2/Program.cs

10
Example2/Program.cs

@ -13,13 +13,15 @@ namespace Example2
{ {
/* Create a new instance of the WebSocketServer class. /* Create a new instance of the WebSocketServer class.
* *
* If you would like to provide the secure connection, you should create the instance
* with the 'secure' parameter set to true, or the wss scheme WebSocket URL.
* If you would like to provide the secure connection, you should create the instance with
* the 'secure' parameter set to true, or the wss scheme WebSocket URL.
*/ */
var wssv = new WebSocketServer (4649); var wssv = new WebSocketServer (4649);
//var wssv = new WebSocketServer (4649, true);
//var wssv = new WebSocketServer (5963, true);
//var wssv = new WebSocketServer (System.Net.IPAddress.Parse ("127.0.0.1"), 4649);
//var wssv = new WebSocketServer (System.Net.IPAddress.Parse ("127.0.0.1"), 5963, true);
//var wssv = new WebSocketServer ("ws://localhost:4649"); //var wssv = new WebSocketServer ("ws://localhost:4649");
//var wssv = new WebSocketServer ("wss://localhost:4649");
//var wssv = new WebSocketServer ("wss://localhost:5963");
#if DEBUG #if DEBUG
// To change the logging level. // To change the logging level.
wssv.Log.Level = LogLevel.Trace; wssv.Log.Level = LogLevel.Trace;

Loading…
Cancel
Save