Skip to content

Commit 85ef380

Browse files
committed
Changed IsConnected to IsKeepAlive in WebSocket.cs
1 parent 3ef6d58 commit 85ef380

53 files changed

Lines changed: 49 additions & 54 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Example/Example.pidb

0 Bytes
Binary file not shown.

Example/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void Main(string[] args)
4949

5050
WaitCallback notifyMsg = state =>
5151
{
52-
while (ts.Enabled)
52+
while (ts.Enabled || _msgQ.Count > 0)
5353
{
5454
Thread.Sleep(500);
5555

@@ -73,9 +73,9 @@ public static void Main(string[] args)
7373

7474
ThreadPool.QueueUserWorkItem(notifyMsg);
7575

76-
using (WebSocket ws = new WebSocket("ws://echo.websocket.org", "echo"))
76+
//using (WebSocket ws = new WebSocket("ws://echo.websocket.org", "echo"))
7777
//using (WebSocket ws = new WebSocket("wss://echo.websocket.org", "echo"))
78-
//using (WebSocket ws = new WebSocket("ws://localhost:4649"))
78+
using (WebSocket ws = new WebSocket("ws://localhost:4649"))
7979
{
8080
ws.OnOpen += (sender, e) =>
8181
{
@@ -116,7 +116,7 @@ public static void Main(string[] args)
116116
Console.Write("> ");
117117
data = Console.ReadLine();
118118
if (data == "exit")
119-
//if (data == "exit" || !ws.IsConnected)
119+
//if (data == "exit" || !ws.IsKeepAlive)
120120
{
121121
break;
122122
}

Example/bin/Debug/example.exe

0 Bytes
Binary file not shown.

Example/bin/Debug/example.exe.mdb

0 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.
100 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.
100 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)