public static void PushPositionDataToClient(Position position) { var connectionMamanger = (IConnectionManager)AspNetHost.DependencyResolver.GetService(typeof(IConnectionManager)); dynamic clients = connectionMamanger.GetClients<CommunicationHub>(); clients.renderPosition(position); }
public void Send(Position position) { //brodcast the data to the client CommunicationHub.PushPositionDataToClient(position); }