solana-labs/solana

Would you support the "pong" response in websocket api when receiving "ping"?

Open

#15,187 opened on Feb 8, 2021

View on GitHub
 (7 comments) (3 reactions) (0 assignees)Rust (12,651 stars) (3,950 forks)batch import
good first issue

Description

Problem

I connect to my own solana node via websocket, but I found It seems not provide a complete heartbeat flow (send ping then get pong). imho, a pong not only a server response, also a network performance. I can know there is something wrong via a late response time.

Proposed Solution

Just like other api do, response a struct {"jsonrpc":"2.0","result":"pong","id": 1} or something like that.

Contributor guide