Event subscription ADR and refactor event_listener module #313
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
go
Compatibility with Go code
rpc
Milestone
tendermint-rs/tendermint/src/rpc/event_listener.rs
Lines 70 to 71 in 71d7e23
tendermint-rs/tendermint/src/rpc/event_listener.rs
Lines 112 to 115 in 71d7e23
tendermint-rs/tendermint/src/rpc/event_listener.rs
Lines 196 to 197 in 71d7e23
Subscribe should return a stream of events tied to the particular query. Pretty much what the go-code returns on subscribe but "rust style". E.g. see: https://docs.tendermint.com/master/rpc/#/Websocket/subscribe
Furthermore, the current code only supports two events:
tendermint-rs/tendermint/src/rpc/event_listener.rs
Lines 33 to 34 in cc6a4cf
While tendermint actually has more event types:
https://github.com/tendermint/tendermint/blob/6961c7e5d1f2a187bc5f77ac0056ce5ec5bf7ec6/types/events.go#L21-L24
also
tendermint-rs/tendermint/src/rpc.rs
Line 8 in cc6a4cf
ref: #311
The text was updated successfully, but these errors were encountered: