Golang websocket gets 1006 from pubsub

I was told that using binary low-level ping is not the same as this sent as string, which is kinda strange

{
  "type": "PONG"
}