Type alias SubstrateSocketConnectionCallbacksType
SubstrateSocketConnectionCallbacksType: {
onConnect?: ((api: ApiPromise) => void);
onConnectError?: ((error: Event) => void);
onConnectInit?: (() => void);
onConnectSucccess?: ((api: ApiPromise) => void);
}
Type declaration
-
Optional
onConnect?: ((api: ApiPromise) => void)
-
- (api: ApiPromise): void
-
Returns void
-
Optional
onConnectError?: ((error: Event) => void)
-
- (error: Event): void
-
Returns void
-
Optional
onConnectInit?: (() => void)
-
Optional
onConnectSucccess?: ((api: ApiPromise) => void)
-
- (api: ApiPromise): void
-
Returns void
Callback for when the connection is established.