Fix due to the added IsValidWsUri method to Ext.cs

This commit is contained in:
sta
2012-09-25 10:48:33 +09:00
parent 14f16577be
commit a75903c488
25 changed files with 62 additions and 56 deletions

Binary file not shown.

View File

@@ -7,7 +7,7 @@ namespace Example2
{
public static void Main(string[] args)
{
/* Single service server
// Single service server
var wssv = new WebSocketServer<Echo>("ws://localhost:4649");
//var wssv = new WebSocketServer<Echo>(4649);
//var wssv = new WebSocketServer<Chat>("ws://localhost:4649");
@@ -17,9 +17,9 @@ namespace Example2
Console.WriteLine(
"WebSocket Server (url: {0})\n listening on address: {1} port: {2}\n",
wssv.Uri, wssv.Address, wssv.Port);
*/
// Multi services server
/* Multi services server
var wssv = new WebSocketServer(4649);
wssv.AddService<Echo>("/Echo");
wssv.AddService<Chat>("/Chat");
@@ -27,7 +27,7 @@ namespace Example2
wssv.Start();
Console.WriteLine(
"WebSocket Server listening on port: {0}\n", wssv.Port);
*/
Console.WriteLine("Press any key to stop server...");
Console.ReadLine();