Skip to content

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

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

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

Conversation

@hzbnb

@hzbnb hzbnb commented Apr 9, 2026

Copy link
Copy Markdown

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.

@Musthaq22 Musthaq22 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@hzbnb

hzbnb commented May 24, 2026

Copy link
Copy Markdown
Author

Thanks for the reviews. Could a maintainer with write access please help merge this PR if everything looks good?

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