Readonly
appProtected
listenersOptional
connected?: (data: { network: SupernetType }) => void[]Optional
disconnected?: (data: { code: ErrorCode; reason: string }) => void[]ApiClient#disconnected - The client has been disconnected by the server, either authentication is lost or the server is unreachable.This event is not triggered when the client manually disconnects.
Readonly
loggerProtected
emitDispatch an event to all listeners
Remove an event listener
Add an event listener, returns a function that can be called to remove the listener
Add an event listener that will be called only once
ApiClient#connected - The client has been connected to the server.