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

@ -86,6 +86,10 @@ func (s *Session) Open() error {
return err return err
} }
s.wsConn.SetCloseHandler(func(code int, text string) error {
return nil
})
defer func() { defer func() {
// because of this, all code below must set err to the error // because of this, all code below must set err to the error
// when exiting with an error :) Maybe someone has a better // when exiting with an error :) Maybe someone has a better