Fix due to the added WebSocketServer class in WebSocketServer.cs

This commit is contained in:
sta
2012-09-24 15:01:25 +09:00
parent ab86ce8af8
commit b9859e08c0
52 changed files with 679 additions and 263 deletions
Binary file not shown.
+14 -1
View File
@@ -7,14 +7,27 @@ namespace Example2
{
public static void Main(string[] args)
{
/* Single service server
var wssv = new WebSocketServer<Echo>("ws://localhost:4649");
//var wssv = new WebSocketServer<Chat>("ws://localhost:4649");
//var wssv = new WebSocketServer<Echo>(4649);
//var wssv = new WebSocketServer<Chat>("ws://localhost:4649");
//var wssv = new WebSocketServer<Chat>(4649);
wssv.Start();
Console.WriteLine(
"WebSocket Server (url: {0})\n listening on address: {1} port: {2}\n",
wssv.Uri, wssv.Address, wssv.Port);
*/
// Multi services server
var wssv = new WebSocketServer(4649);
wssv.AddService<Echo>("/Echo");
wssv.AddService<Chat>("/Chat");
wssv.Start();
Console.WriteLine(
"WebSocket Server listening on port: {0}\n", wssv.Port);
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.