add auto reconnect
This commit is contained in:
parent
0fd2646cf3
commit
9d92cd47e1
@ -1,6 +1,9 @@
|
||||
$(function () {
|
||||
|
||||
var connection = new signalR.HubConnectionBuilder().withUrl('/codeHub').build();
|
||||
var connection = new signalR.HubConnectionBuilder()
|
||||
.withAutomaticReconnect()
|
||||
.withUrl('/codeHub')
|
||||
.build();
|
||||
|
||||
let $liveModeLink = $('#live-mode-link');
|
||||
let $liveModeStatus = $('#live-mode-status');
|
||||
|
Loading…
x
Reference in New Issue
Block a user