Last post Jun 21, 2016 09:05 AM by firstname.lastname@example.org
Jun 18, 2016 08:55 AMemail@example.com|LINK
We are working on a project which requires us to communicate between a Local SignalR hub (to which local clients connect) and a cloud instance of the SignalR hub. Can the local instance be a client to the cloud instance ? What would be the suggested best
option for two way communication between the two hub instances ?
Thanks in advance.
Jun 21, 2016 07:03 AM|meeyourmark|LINK
You can use
GlobalHost.ConnectionManager for communicating between Hubs:
var ctx = GlobalHost.ConnectionManager.GetHubContext<HubName>();
Jun 21, 2016 09:05 AMfirstname.lastname@example.org|LINK
Thanks for your reply.
The GlobalHost.ConnectionManager works if both the hubs are on the same application pool. In my case, one is a local instance and the other is an instance on the cloud.