> For the complete documentation index, see [llms.txt](https://docs.chainrpc.io/chainrpc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chainrpc.io/chainrpc/networks/ethereum/json-rpc-methods/subscription-methods.md).

# Subscription methods

Subscription methods are available for WebSocket connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs.

The following subscription methods are available:

* [`eth_subscribe`](/chainrpc/networks/ethereum/json-rpc-methods/subscription-methods/eth_subscribe.md) - Create a subscription to a particular event
* [`eth_unsubscribe`](/chainrpc/networks/ethereum/json-rpc-methods/subscription-methods/eth_unsubscribe.md) - Cancel an active subscription
