From e5f177a9d71d4fe4acb2c70a3e530bbfe3297141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20Holmstr=C3=B6m?= Date: Sat, 11 Feb 2017 00:01:59 +0100 Subject: [PATCH] fix messageSentHandlerBinary initilization --- melody.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) 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, } }