Changed IsConnected to IsKeepAlive in WebSocket.cs
This commit is contained in:
@@ -10,5 +10,10 @@ namespace Example2
|
||||
{
|
||||
Send(e.Data);
|
||||
}
|
||||
|
||||
protected override void onClose(object sender, CloseEventArgs e)
|
||||
{
|
||||
Console.WriteLine("[Echo] Close({0}: {1})", (ushort)e.Code, e.Code);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@@ -9,7 +9,7 @@ namespace Example2
|
||||
{
|
||||
//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<Echo>(4649);
|
||||
|
||||
wssv.Start();
|
||||
Console.WriteLine(
|
||||
|
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user