solana-labs/solana

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

Open

#15,187 创建于 2021年2月8日

在 GitHub 查看
 (7 评论) (3 反应) (0 负责人)Rust (12,651 star) (3,950 fork)batch import
good first issue

描述

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.

贡献者指南