rootSubscribe method

Stream<int> rootSubscribe()

Subscribe to receive notification anytime a new root is set by the validator.

Returns a Stream that can be used to listen for events. By cancelling the subscription returned by the Stream.listen() method of this stream client will automatically send rootUnsubscribe message; from Solana.

Implementation

Stream<int> rootSubscribe() => _subscribe<int>('root');