Skip to content

feat(sdk,graphql-transport): serve subscriptions only through GraphQL - #444

Open
muXxer wants to merge 1 commit into
developfrom
feat/remove-jsonrpc-subscriptions
Open

muXxer wants to merge 1 commit into
developfrom
feat/remove-jsonrpc-subscriptions

Conversation

@muXxer

@muXxer muXxer commented Oct 23, 2026

Copy link
Copy Markdown

Description of change

  • Full nodes no longer serve JSON-RPC subscriptions over WebSocket. iotax_subscribeEvent and iotax_subscribeTransaction were already deprecated in favour of queryEvents and queryTransactionBlocks, and the indexer never served them.
  • IotaClient.subscribeEvent and subscribeTransaction keep working through IotaClientGraphQLTransport, which serves them with GraphQL subscriptions.
  • @iota/iota-sdk: removes the JSON-RPC WebSocket client. IotaHTTPTransport.subscribe now fails with an error that points to the GraphQL transport. The WebSocketConstructor and websocket options are kept as deprecated and ignored, so existing code still compiles.
  • @iota/graphql-transport: subscriptions no longer fall back to JSON-RPC; a filter that GraphQL cannot express is refused. The README lists the supported subscription filters, and no longer lists subscribeEvent / subscribeTransaction as unsupported.

Links to any relevant issues

None.

How the change has been tested

  • Unit tests updated: the HTTP transport test checks that subscriptions are refused, and the GraphQL transport tests check that unsupported filters and methods are refused instead of falling back.
  • Formatted with oxfmt. Not type-checked or run locally (dependencies not installed); relies on CI.
  • ws and @types/ws stay in @iota/iota-sdk's devDependencies although nothing uses them any more, to avoid touching pnpm-lock.yaml without pnpm.

Full nodes no longer serve JSON-RPC subscriptions over WebSocket;
subscribeEvent and subscribeTransaction were already deprecated there and
the indexer never served them.

- Remove the JSON-RPC WebSocket client. IotaHTTPTransport.subscribe fails
  with an error that points to IotaClientGraphQLTransport, and its
  WebSocketConstructor and websocket options are deprecated and ignored.
- IotaClientGraphQLTransport no longer falls back to JSON-RPC for
  subscriptions; a filter GraphQL cannot express is refused.
- Document the supported subscription filters in the graphql-transport
  README.
@github-actions

Copy link
Copy Markdown

This pull request has been deployed to Vercel.

Latest commit: 9aa6e3c
✅ Preview: https://iota-multisig-toolkit-7snbeipvz-iota1.vercel.app
🔍 Inspect: https://vercel.com/iota/iota-multisig-toolkit/H4CnmPcXsxTWSMrDaXpRrb8j4jZg

View Workflow Logs

@github-actions

Copy link
Copy Markdown

This pull request has been deployed to Vercel.

Latest commit: 9aa6e3c
✅ Preview: https://wallet-dashboard-d2hn2fmt3-iota1.vercel.app
🔍 Inspect: https://vercel.com/iota/wallet-dashboard/421CHFzrwfvjnHDuXhUeF1LYQxL8

View Workflow Logs

@github-actions

Copy link
Copy Markdown

This pull request has been deployed to Vercel.

Latest commit: 9aa6e3c
✅ Preview: https://iota-evm-bridge-4lxivwngc-iota1.vercel.app
🔍 Inspect: https://vercel.com/iota/iota-evm-bridge/DMLMPqgyifccvaGDFxv4A6srfxd8

View Workflow Logs

@github-actions

Copy link
Copy Markdown

This pull request has been deployed to Vercel.

Latest commit: 9aa6e3c
✅ Preview: https://rebased-explorer-m2od3y30t-iota1.vercel.app
🔍 Inspect: https://vercel.com/iota/rebased-explorer/26CkjyUfBptMTHNApyDinh8LBsDy

View Workflow Logs

@github-actions

Copy link
Copy Markdown

This pull request has been deployed to Vercel.

Latest commit: 9aa6e3c
✅ Preview: https://iota-names-hdgxc4hmp-iota1.vercel.app
🔍 Inspect: https://vercel.com/iota/iota-names/F3Zy8GtkH42byh7A1kzAHwi1ofhE

View Workflow Logs

This branch was successfully deployed

5 active deployments
Preview – names-dapp — 9aa6e3cc Deployed Oct 23, 2026 by github-actions[bot]
Preview – explorer — 9aa6e3cc Deployed Oct 23, 2026 by github-actions[bot]
Preview – multisig-toolkit — 9aa6e3cc Deployed Oct 23, 2026 by github-actions[bot]
Preview – evm-bridge — 9aa6e3cc Deployed Oct 23, 2026 by github-actions[bot]
Preview – wallet-dashboard — 9aa6e3cc Deployed Oct 23, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants