Merge pull request #491 from cookkkie/patch-1

Drop the default gorilla websocket close handler
This commit is contained in:
Skippy 2018-08-27 10:33:16 -05:00 committed by GitHub
commit 70fa40c872
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