Skip to content

Commit 774b46f

Browse files
committed
doc: 更新自动重连文档
1 parent c7ba068 commit 774b46f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/BootstrapBlazor.Server/Components/Samples/Sockets/AutoReconnects.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<li><code>IsAutoReconnect</code> 是否开启自动重连功能</li>
2424
<li><code>ReconnectInterval</code> 自动重连等待间隔 默认 5000 毫秒</li>
2525
</ul>
26-
26+
<p>本例中点击 <b>连接</b> 按钮后程序连接到一个发送数据后自动关闭的模拟服务端,通过输出日志查看运行情况,点击 <code>断开</code> 按钮后程序停止自动重连</p>
2727
<div class="row form-inline g-3">
2828
<div class="col-12 col-sm-6">
2929
<Button Text="连接" Icon="fa-solid fa-play"

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7108,5 +7108,11 @@
71087108
"AdaptersDescription": "Receive data through the data adapter and display",
71097109
"NormalTitle": "Basic usage",
71107110
"NormalIntro": "After the connection is established, the timestamp data sent by the server is received through the <code>ReceivedCallBack</code> callback method of the <code>DataPackageAdapter</code> data adapter."
7111+
},
7112+
"BootstrapBlazor.Server.Components.Samples.Sockets.AutoReconnects": {
7113+
"AutoReconnectsTitle": "DataPackageAdapter",
7114+
"AutoReconnectsDescription": "Receive data through the data adapter and display",
7115+
"NormalTitle": "Basic usage",
7116+
"NormalIntro": "Enable automatic reconnection by setting <code>IsAutoReconnect</code>"
71117117
}
71127118
}

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7108,5 +7108,11 @@
71087108
"AdaptersDescription": "通过数据适配器接收数据并且显示",
71097109
"NormalTitle": "基本用法",
71107110
"NormalIntro": "连接后通过 <code>DataPackageAdapter</code> 数据适配器的 <code>ReceivedCallBack</code> 回调方法接收服务端发送来的时间戳数据"
7111+
},
7112+
"BootstrapBlazor.Server.Components.Samples.Sockets.AutoReconnects": {
7113+
"AutoReconnectsTitle": "Socket 自动重连示例",
7114+
"AutoReconnectsDescription": "链路断开后自动重连示例",
7115+
"NormalTitle": "基本用法",
7116+
"NormalIntro": "通过设置 <code>IsAutoReconnect</code> 开启自动重连机制"
71117117
}
71127118
}

0 commit comments

Comments
 (0)