Skip to content

API reference > @kontsedal/olas-core > NetworkHost

NetworkHost type ​

Connectivity and focus, as the query engine sees them.

Signature:

typescript
type NetworkHost = {
  isOnline(): boolean;
  onReconnect(fn: () => void): () => void;
  onFocus(fn: () => void): () => void;
};

Released under the MIT License.