Fix due to the modified ServiceManager.cs
This commit is contained in:
Binary file not shown.
@@ -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();
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user