Browse Source

Fix HandleSentMessageBinary, close #32.

master
Ola Holmström 8 years ago
parent
commit
d521390733
  1. 4
      CHANGELOG.md
  2. 1
      README.md
  3. 2
      melody.go

4
CHANGELOG.md

@ -1,3 +1,7 @@
## 2017-05-18
* Fix `HandleSentMessageBinary`.
## 2017-04-11
* Allow any origin by default.

1
README.md

@ -173,6 +173,7 @@ func main() {
* Matt Caldwell (@mattcaldwell)
* Heikki Uljas (@huljas)
* Robbie Trencheny (@robbiet480)
* yangjinecho (@yangjinecho)
## FAQ

2
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.

Loading…
Cancel
Save