Modified a bit for Program.cs

This commit is contained in:
sta 2015-07-15 17:38:06 +09:00
parent 77472f073f
commit ad41099180

View File

@ -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 * If you would like to provide the secure connection, you should create the instance with
* with the 'secure' parameter set to true, or the wss scheme WebSocket URL. * 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;