diff --git a/CHANGELOG.md b/CHANGELOG.md index 613c965..ff511dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2017-05-18 + +* Fix `HandleSentMessageBinary`. + ## 2017-04-11 * Allow any origin by default. diff --git a/README.md b/README.md index cdddf7e..67e3ab5 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,7 @@ func main() { * Matt Caldwell (@mattcaldwell) * Heikki Uljas (@huljas) * Robbie Trencheny (@robbiet480) +* yangjinecho (@yangjinecho) ## FAQ diff --git a/melody.go b/melody.go index 39cbd97..6e416b1 100644 --- a/melody.go +++ b/melody.go @@ -129,7 +129,7 @@ func (m *Melody) HandleSentMessage(fn func(*Session, []byte)) { // HandleSentMessageBinary fires fn when a binary message is successfully sent. func (m *Melody) HandleSentMessageBinary(fn func(*Session, []byte)) { - m.messageSentHandler = fn + m.messageSentHandlerBinary = fn } // HandleError fires fn when a session has an error.