diff --git a/AuroraNative/AuroraNative.csproj b/AuroraNative/AuroraNative.csproj
index cc9a3f5..20db5b0 100644
--- a/AuroraNative/AuroraNative.csproj
+++ b/AuroraNative/AuroraNative.csproj
@@ -1,24 +1,28 @@
- netstandard2.0
+ netstandard2.0;net5.0;
true
- 悠静萝莉,Monodesu
- This donet SDK based on go-cqhttp
+ 悠静萝莉;Monodesu
+ This donet SDK based on go-cqhttp
+
+基于 go-cqhttp 与 OneBot 标准所实现的一个 C# 开发框架,并且本框架可以支持.NET 5/.NET Framework 4.6.1以上使用,使用.NET 5可以快捷开发一个跨平台的机器人。
LICENSE
https://github.com/timi137137/AuroraNative
git repo
- SDK AuroraNative Navite mikuhl go-cqhttp
+ SDK AuroraNative Navite mikuhl go-cqhttp
悠静萝莉 Copyright©2021
false
false
true
- 0.0.1.0227
- 0.0.1.0227
+ 0.1.0.0311
+ 0.1.0.0311
Icon.png
false
AuroraNative
AuroraNative
+ 0.1.0-alpha
+ true
@@ -37,7 +41,7 @@
-
+
diff --git a/AuroraNative/AuroraNative.xml b/AuroraNative/AuroraNative.xml
index 9e85864..7163e89 100644
--- a/AuroraNative/AuroraNative.xml
+++ b/AuroraNative/AuroraNative.xml
@@ -1846,7 +1846,6 @@
创建并连接到WebSocket服务器
- 连接成功返回true,反而异之
diff --git a/AuroraNative/WebSockets/Client.cs b/AuroraNative/WebSockets/Client.cs
index 51c2764..812510f 100644
--- a/AuroraNative/WebSockets/Client.cs
+++ b/AuroraNative/WebSockets/Client.cs
@@ -41,19 +41,15 @@ namespace AuroraNative.WebSockets
///
/// 创建并连接到WebSocket服务器
///
- /// 连接成功返回true,反而异之
- public bool Create()
+ public void Create()
{
- if (WebSocket is ClientWebSocket socket) {
- Task Connect = socket.ConnectAsync(new Uri("ws://" + Host + "/"), CancellationToken.None);
- Connect.Wait();
- if (WebSocket.State == WebSocketState.Open)
- {
- Task.Run(Feedback);
- return true;
- }
+ WebSocket = new ClientWebSocket();
+ Task Connect = ((ClientWebSocket)WebSocket).ConnectAsync(new Uri("ws://" + Host + "/"), CancellationToken.None);
+ Connect.Wait();
+ if (WebSocket.State == WebSocketState.Open)
+ {
+ Task.Run(Feedback);
}
- return false;
}
///