Check out example codes for "'Using a Hub instance not created by the HubPipeline is unsupported.'". It will help you in understanding the concepts better.

Code Example 1

var context = GlobalHost.ConnectionManager.GetHubContext<chatHub>();
context.Clients.All.Send("Admin", "stop the chat");

Learn ReactJs, React Native from akashmittal.com