diff --git a/v5_ws_public.go b/v5_ws_public.go index 269d29a..b182b36 100644 --- a/v5_ws_public.go +++ b/v5_ws_public.go @@ -234,7 +234,7 @@ func (s *V5WebsocketPublicService) Run() error { // Ping : func (s *V5WebsocketPublicService) Ping() error { - if err := s.writeMessage(websocket.PingMessage, nil); err != nil { + if err := s.writeMessage(websocket.TextMessage, []byte(`{"op":"ping"}`)); err != nil { return err } return nil