This commit is contained in:
2020-07-05 15:44:30 +08:00
parent a8f02e4da5
commit e344c54d82
32 changed files with 647 additions and 209 deletions

View File

@@ -276,7 +276,6 @@ namespace Dist.SpringWebsocket
}
public void DisConnect()
{
_send(StompCommandEnum.DISCONNECT.ToString() + LF + LF + NULL);
ArrayList list = new ArrayList();
list.AddRange(subscribes.Keys);
foreach (var key in list)
@@ -285,6 +284,7 @@ namespace Dist.SpringWebsocket
}
this.callbacks.Clear();
this.subscribes.Clear();
_send(StompCommandEnum.DISCONNECT.ToString() + LF + LF + NULL);
this.connected = false;
isSending = false;
}