> For the complete documentation index, see [llms.txt](https://docs.triton.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.triton.one/solana/rpc-methods/real-time-streaming/whirligig-websocket.md).

# WebSocket methods

Subscribe over WebSocket to account, program, logs, signature, slot, block, and transaction updates, with matching unsubscribe methods.

## Accounts and programs

| Method                                                                                                | What it does                                             |
| ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [`accountSubscribe`](/solana/rpc-methods/real-time-streaming/whirligig-websocket/accountsubscribe.md) | Notifications when an account's lamports or data change. |
| [`programSubscribe`](/solana/rpc-methods/real-time-streaming/whirligig-websocket/programsubscribe.md) | Notifications for accounts owned by a program.           |

## Transactions and logs

| Method                                                                                                        | What it does                                      |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [`logsSubscribe`](/solana/rpc-methods/real-time-streaming/whirligig-websocket/logssubscribe.md)               | Transaction log messages matching a filter.       |
| [`signatureSubscribe`](/solana/rpc-methods/real-time-streaming/whirligig-websocket/signaturesubscribe.md)     | Status notifications for a transaction signature. |
| [`transactionSubscribe`](/solana/rpc-methods/real-time-streaming/whirligig-websocket/transactionsubscribe.md) | Transaction notifications (a Triton extension).   |

## Slots and blocks

| Method                                                                                            | What it does                                           |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [`slotSubscribe`](/solana/rpc-methods/real-time-streaming/whirligig-websocket/slotsubscribe.md)   | Notifications when the validator processes a new slot. |
| [`blockSubscribe`](/solana/rpc-methods/real-time-streaming/whirligig-websocket/blocksubscribe.md) | Notifications for each new block.                      |

## Unsubscribe

Each has a matching unsubscribe method that cancels it by id (`accountUnsubscribe`, `programUnsubscribe`, and so on).

***

<i class="fa-life-ring">:life-ring:</i> Contact support by clicking the chat icon in your [customer dashboard](https://customers.triton.one)\ <i class="fa-briefcase">:briefcase:</i> Sales questions? [Contact us](https://triton.one/contact)\ <i class="fa-sparkles">:sparkles:</i> AI agent? Read [llms.txt](https://docs.triton.one/llms.txt)\ <i class="fa-rss">:rss:</i> Follow updates: [Blog](https://blog.triton.one) · [X](https://x.com/triton_one) · [YouTube](https://www.youtube.com/@triton_one_ltd) · [Telegram](https://t.me/tritonone) · [GitHub](https://github.com/rpcpool)
