Drop the default websocket close handler

This commit is contained in:
Anis B 2017-12-09 16:23:21 +01:00 committed by GitHub
parent 0003ae7dd2
commit 4523c46927
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,10 @@ func (s *Session) Open() error {
s.wsConn = nil // Just to be safe.
return err
}
s.wsConn.SetCloseHandler(func(code int, text string) error {
return nil
})
defer func() {
// because of this, all code below must set err to the error