connectComet
Auto-detects the CometBFT/Tendermint version and returns the appropriate client.CometClient
CometClient is a union type of all version-specific clients: Tendermint37Client | Comet38Client | Comet1Client. They share these methods:
Version-Specific Clients
Tendermint37Client
For Tendermint 0.37 nodes.Comet38Client
For CometBFT 0.38 nodes.Comet1Client
For CometBFT 1.x nodes.Type Guards
These are TypeScript type predicates, so the compiler narrows the client type in the branch where the guard returns
true.