WS Client support for CLI #1324

Open
opened 2025-12-28 17:16:02 +00:00 by sami · 0 comments
Owner

Originally created by @AnnaShaleva on GitHub (Jul 4, 2024).

@532910 is always frustrated when he can't run neo-go query height with WS RPC server endpoint.

Suggestion is to add WS Client support to CLI.

Describe the solution you'd like

options.GetRPCClient may return interface instead of *rpcclient.Client and make an internal switch over http[s]:// and ws[s]:// to create either http or a web-socket client. The draft is in https://github.com/nspcc-dev/neo-go/tree/wss-height, the only thing we need is to move all methods required by CLI from RPC client to interface.

Describe alternatives you've considered

Leave everything as is.

Originally created by @AnnaShaleva on GitHub (Jul 4, 2024). ## Is your feature request related to a problem? Please describe. @532910 is always frustrated when he can't run `neo-go query height` with WS RPC server endpoint. Suggestion is to add WS Client support to CLI. ## Describe the solution you'd like `options.GetRPCClient` may return interface instead of `*rpcclient.Client` and make an internal switch over `http[s]://` and `ws[s]://` to create either http or a web-socket client. The draft is in https://github.com/nspcc-dev/neo-go/tree/wss-height, the only thing we need is to move all methods required by CLI from RPC client to interface. ## Describe alternatives you've considered Leave everything as is.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#1324
No description provided.