通过一个集线器在两个集线器客户端之间进行同步通信

通过一个集线器在两个集线器客户端之间进行同步通信

本文介绍了SignalR - 通过一个集线器在两个集线器客户端之间进行同步通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我有两个客户端使用SignalR连接到一个集线器。


我的要求如下:

客户A已与集线器建立连接。

请求来自集线器客户端B,该请求需要从集线器发送到客户端A.

并且需要从客户端A向集线器返回响应,并且该响应需要发送回客户端B.


这一切都需要同步发生。

有可能实现这个目标吗?


谢谢提前。


解决方案

Hello,

I have two clients connecting to one hub using SignalR.

My requirement is as follows:
Client A has made a connection with the hub.
A request comes to the hub from Client B, and that request needs to be sent to Client A from the hub.
And a response needs to be returned from Client A to the hub and that response needs to be sent back to Client B.

All this needs to happen synchronously.
Is it possible to achieve this?

Thank you in advance.

解决方案


这篇关于SignalR - 通过一个集线器在两个集线器客户端之间进行同步通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 03:39