修改自动连接逻辑
This commit is contained in:
@@ -80,6 +80,12 @@ namespace JoyD.Windows.CS.WebSocket
|
||||
{
|
||||
_config = config ?? new WebSocketConfig();
|
||||
_messageQueue = new List<object>();
|
||||
|
||||
// 如果AutoConnect设置为true,则自动连接
|
||||
if (_config.AutoConnect)
|
||||
{
|
||||
Connect();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user