# WebSocket Methods

> Live Solana data over WebSocket: accounts, programs, logs, signatures, slots and more.

Source: https://docs.constant-k.com/rpc/websocket/

{/* Generated by scripts/gen-rpc.mjs. Do not edit. */}

A WebSocket connection to the endpoint below accepts a `*Subscribe` request and returns a subscription id in the response. Notifications then arrive on the same socket until the matching `*Unsubscribe` method is called.

```bash title="Endpoint"
wss://ws-newyork.constant-k.com:1337/ws?api-key=YOUR_API_KEY
```

## Subscriptions

| Method                                                           | Description                                                                                                 | Plans              |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ------------------ |
| [`accountSubscribe`](https://docs.constant-k.com/rpc/websocket/accountsubscribe/)           | Emits a notification each time a single account's lamports or data change.                                  | Operator and above |
| [`blockSubscribe`](https://docs.constant-k.com/rpc/websocket/blocksubscribe/)               | Streams full block contents as each block reaches the requested commitment (unstable upstream).             | Nexus only         |
| [`logsSubscribe`](https://docs.constant-k.com/rpc/websocket/logssubscribe/)                 | Streams program log output for transactions matching a filter, as each one lands.                           | Operator and above |
| [`programSubscribe`](https://docs.constant-k.com/rpc/websocket/programsubscribe/)           | Streams an update for every account owned by a program, one notification per changed account.               | Operator and above |
| [`rootSubscribe`](https://docs.constant-k.com/rpc/websocket/rootsubscribe/)                 | Emits a notification each time the validator advances its root (permanently finalized) slot.                | Operator and above |
| [`signatureSubscribe`](https://docs.constant-k.com/rpc/websocket/signaturesubscribe/)       | Emits a one-shot notification when a transaction signature reaches the requested commitment.                | Operator and above |
| [`slotSubscribe`](https://docs.constant-k.com/rpc/websocket/slotsubscribe/)                 | Streams a notification every time the validator begins processing a new slot.                               | Operator and above |
| [`slotsUpdatesSubscribe`](https://docs.constant-k.com/rpc/websocket/slotsupdatessubscribe/) | Streams fine-grained per-slot lifecycle events (unstable; shape may change without notice).                 | Operator and above |
| [`voteSubscribe`](https://docs.constant-k.com/rpc/websocket/votesubscribe/)                 | Streams validator vote transactions as the node's gossip/replay pipeline observes them (unstable upstream). | Operator and above |
