slotSubscribe method

Stream<Slot> slotSubscribe()

Subscribe to receive notification anytime a slot is processed 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 slotUnsubscribe message; from Solana.

Implementation

Stream<Slot> slotSubscribe() => _subscribe<Slot>('slot');