diff --git a/session.go b/session.go index 49c3461..d66d4b4 100644 --- a/session.go +++ b/session.go @@ -47,7 +47,7 @@ func (s *Session) close() { } func (s *Session) ping() { - s.writeMessage(&envelope{t: websocket.PingMessage, msg: []byte{}}) + s.writeRaw(&envelope{t: websocket.PingMessage, msg: []byte{}}) } func (s *Session) writePump() {