@parity/light.js
Version:
A high-level reactive JS library optimized for light clients
21 lines (20 loc) • 685 B
JavaScript
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: MIT
Object.defineProperty(exports, "__esModule", { value: true });
var createPubsubObservable_1 = require("./utils/createPubsubObservable");
/**
* Observable that emits when syncing status changes.
*/
// TODO Pubsub doesn't exist on `net_peerCount`
/**
* Observable that emits when syncing status changes.
*
* @param options - Options to pass to {@link FrequencyObservable}.
*/
function onSyncingChanged$(options) {
return createPubsubObservable_1.default('eth_syncing', 'eth_syncing', options);
}
exports.onSyncingChanged$ = onSyncingChanged$;
;