Fix due to the modified ServiceManager.cs

This commit is contained in:
sta
2012-11-02 17:55:00 +09:00
parent 746c883b82
commit 2addc16f91
30 changed files with 65 additions and 11 deletions

Binary file not shown.

View File

@@ -30,16 +30,19 @@ namespace Example2
/// Multi services server
var wssv = new WebSocketServer(4649);
//var wssv = new WebSocketServer("ws://localhost:4649");
//wssv.Sweeped = false; // Stop the Sweep inactive session Timer.
wssv.AddService<Echo>("/Echo");
wssv.AddService<Echo>("/エコー");
wssv.AddService<Chat>("/Chat");
wssv.AddService<Chat>("/チャット");
//wssv.Sweeped = false; // Must be set after any AddService methods done.
//wssv.AddService<Echo>("/エコー");
//wssv.AddService<Chat>("/チャット");
wssv.Start();
Console.WriteLine(
"WebSocket Server listening on port: {0}\n", wssv.Port);
"WebSocket Server listening on port: {0} service path:", wssv.Port);
foreach (var path in wssv.ServicePath)
Console.WriteLine(" {0}", path);
Console.WriteLine();
Console.WriteLine("Press any key to stop server...");
Console.ReadLine();