Browse Source

use write raw instead of write message in ping, close #8

master
Ola Holmström 9 years ago
parent
commit
241a6879bf
  1. 2
      session.go

2
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() {

Loading…
Cancel
Save