Drop the default websocket close handler
This commit is contained in:
parent
0003ae7dd2
commit
4523c46927
1 changed files with 4 additions and 0 deletions
4
wsapi.go
4
wsapi.go
|
@ -85,6 +85,10 @@ func (s *Session) Open() error {
|
||||||
s.wsConn = nil // Just to be safe.
|
s.wsConn = nil // Just to be safe.
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue