VS Blazor Server应用程序模板:服务器到客户端SignalR通信
由于Blazer Server已经与客户端建立了SignalR连接,因此在不创建新的SignalR连接的情况下,服务器可以在BlazorHub中点击并将通知推向客户端吗?
Since blazer server already establish a signalr connection with it's client, without creating new signalr connection is there any simple way for server to tap in blazorhub and push notification to client?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
每次您致电stateHaschanged时,如果需要,DOM都会更新。
您可以使用计时器或其他一些事件触发此更新。
此处的完整聊天示例
https://github.com/iso88859/threadmessaging
Each time you call StateHasChanged the DOM is updated if needed.
You can trigger this update with a timer or with some other events.
Full chat example here
https://github.com/iso8859/ThreadMessaging