adding automatic reconnect to signalr
This commit is contained in:
parent
2a6026360b
commit
46da258efc
@ -10,6 +10,7 @@ import BaseInfoCard from "./Now/BaseInfoCard";
|
|||||||
|
|
||||||
const connection = new signalR.HubConnectionBuilder()
|
const connection = new signalR.HubConnectionBuilder()
|
||||||
.withUrl("/hub")
|
.withUrl("/hub")
|
||||||
|
.withAutomaticReconnect()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
connection.start()
|
connection.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user