mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
rpc/v1 for polling
This commit is contained in:
@@ -286,7 +286,7 @@ export default class SuccessPage implements AfterViewInit {
|
|||||||
|
|
||||||
while (attempts < maxAttempts) {
|
while (attempts < maxAttempts) {
|
||||||
try {
|
try {
|
||||||
await this.api.echo({ message: 'ping' }, this.lanAddress)
|
await this.api.echo({ message: 'ping' }, `${this.lanAddress}/rpc/v1`)
|
||||||
return
|
return
|
||||||
} catch {
|
} catch {
|
||||||
await new Promise(resolve => setTimeout(resolve, 5000))
|
await new Promise(resolve => setTimeout(resolve, 5000))
|
||||||
|
|||||||
Reference in New Issue
Block a user