olahol / melody

:notes: Minimalist websocket framework for Go
BSD 2-Clause "Simplified" License
3.75k stars 366 forks source link

Add a handler for message successfully sent #19

Closed robbiet480 closed 7 years ago

robbiet480 commented 7 years ago

This is useful for logging and metrics collection globally.

olahol commented 7 years ago

Thanks for the contribution @robbiet480, I split up the method into HandleSentMessage and HandleSentMessageBinary to keep the API consistent.