olahol / melody

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

When is HandleDisconnect called? #39

Closed fiatjaf closed 6 years ago

fiatjaf commented 6 years ago

I couldn't find anywhere in the code a line where *Melody.disconnectHandler is called. That function isn't exported, so it is not being called by another package, right?

hugows commented 6 years ago

Isn't it called here?

https://github.com/olahol/melody/blob/7bd65910e5abdd2e7396c23acb13475bff79d1af/melody.go#L200

fiatjaf commented 6 years ago

Oops, I was relying on GitHub search and that failed. Thank you.