# Subscribing to events via Websocket
Tendermint emits different events, which you can subscribe to via Websocket (opens new window). This can be useful for third-party applications (for analysis) or for inspecting state.
To connect to a node via websocket from the CLI, you can use a tool such as wscat (opens new window) and run:
You can subscribe to any of the events above by calling the
method via Websocket along with a valid query.
Check out API docs (opens new window) for more information on query syntax and other options.
You can also use tags, given you had included them into DeliverTx response, to query transaction results. See Indexing transactions for details.
When validator set changes, ValidatorSetUpdates event is published. The event carries a list of pubkey/power pairs. The list is the same Tendermint receives from ABCI application (see EndBlock section (opens new window) in the ABCI spec).