Constructors
constructor
- new default(baseUrl: string): default
-
Properties
Private
_jwt
_jwt: string = ''
Accessors
jwt
- get jwt(): string
-
Returns string
- set jwt(newJwt: string): void
-
Returns void
onAuthFailed
- set onAuthFailed(callback: ((url: string) => void)): void
-
Parameters
-
callback: ((url: string) => void)
-
- (url: string): void
-
Returns void
Returns void
Methods
isOnline
- isOnline(): Promise<{ lightning: { operational: boolean; unlocked: boolean }; manager: boolean; middleware: boolean; node: boolean }>
-
Returns Promise<{ lightning: { operational: boolean; unlocked: boolean }; manager: boolean; middleware: boolean; node: boolean }>
login
- login(password: string, totpToken: string): Promise<void>
-
Parameters
-
password: string
-
totpToken: string
Returns Promise<void>
refresh
- refresh(): Promise<void>
-
Returns Promise<void>
Static
discover
- discover(): Promise<string | false>
-
Returns Promise<string | false>
Check if the node is online, and what parts are online