diff --git a/melody.go b/melody.go index 331020f..4e838d6 100644 --- a/melody.go +++ b/melody.go @@ -39,16 +39,17 @@ func New() *Melody { go hub.run() return &Melody{ - Config: newConfig(), - Upgrader: upgrader, - messageHandler: func(*Session, []byte) {}, - messageHandlerBinary: func(*Session, []byte) {}, - messageSentHandler: func(*Session, []byte) {}, - errorHandler: func(*Session, error) {}, - connectHandler: func(*Session) {}, - disconnectHandler: func(*Session) {}, - pongHandler: func(*Session) {}, - hub: hub, + Config: newConfig(), + Upgrader: upgrader, + messageHandler: func(*Session, []byte) {}, + messageHandlerBinary: func(*Session, []byte) {}, + messageSentHandler: func(*Session, []byte) {}, + messageSentHandlerBinary: func(*Session, []byte) {}, + errorHandler: func(*Session, error) {}, + connectHandler: func(*Session) {}, + disconnectHandler: func(*Session) {}, + pongHandler: func(*Session) {}, + hub: hub, } }