User-707554951 posted
Hi jpro1001,
jpro1001
Is there some way to send client data on a signalr reconnection event to update this related information?
Please try to override OnReconnected method in your hub class, and then you could write your code logic to get connectionid of the user and push data and updated client web page.
public override Task OnReconnected()
{
//get connectionid of user
//and page information that user visited before
//call client function to push data to current connected user
Clients.Client("connection id").updategrid(data);
return base.OnReconnected();
}
jpro1001
The problem is that if signalr reconnects it can get a new connectionid.
For user may get a new connectionid issue, we could
map SignalR User to Connections, which could help us know who is current user based on his connectionid.
Best Regards
cathy