Skip to content

Commit

Permalink
Merge pull request bwmarrin#491 from cookkkie/patch-1
Browse files Browse the repository at this point in the history
Drop the default gorilla websocket close handler
  • Loading branch information
bwmarrin authored Aug 27, 2018
2 parents 56e4d6a + 4523c46 commit 70fa40c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wsapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70fa40c

Please sign in to comment.