[SignalR] Automatically reconnect
페이지 정보
작성자 sbLAB 댓글 0건 조회 5,221회 작성일 21-12-27 23:45본문
Automatically reconnect
hubConnection = new HubConnectionBuilder()
.WithUrl(_navigationManager.ToAbsoluteUri("/chathub"))
.WithAutomaticReconnect(new[] { TimeSpan.Zero,
TimeSpan.FromSeconds(2), //다시 연결시도 초간격
TimeSpan.FromSeconds(10),
TimeSpan.FromSeconds(30),
TimeSpan.FromSeconds(60),
TimeSpan.FromSeconds(180) }).Build();
[이 게시물은 sbLAB님에 의해 2022-12-22 09:41:18 Web/PHP/API에서 이동 됨]
- 이전글[Blazor WASM] Lazing loading DLL 21.12.28
- 다음글[.net6 Cookie] CookieAuthenticationOptions 21.12.27
댓글목록
등록된 댓글이 없습니다.