Skip to content

Go private ping msg Change ping message format to JSON#114

Open
hzbnb wants to merge 1 commit intobybit-exchange:masterfrom
hzbnb:patch-1
Open

Go private ping msg Change ping message format to JSON#114
hzbnb wants to merge 1 commit intobybit-exchange:masterfrom
hzbnb:patch-1

Conversation

@hzbnb
Copy link
Copy Markdown

@hzbnb hzbnb commented Apr 9, 2026

Prior sending ping was incorrect, an error would be received. The correct format should be {"op": "ping"}.

Prior sending ping was incorrect, an error would be received. The correct format should be {"op": "ping"}.
go func() {
for range ticker.C {
err := c.WriteMessage(websocket.TextMessage, []byte("ping"))
err := c.WriteMessage(websocket.TextMessage, []byte(`{"op": "ping"}`))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants