olahol / melody

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

Question: Handle error in HandleMessage #79

Open haoletesuji opened 1 year ago

haoletesuji commented 1 year ago

I sent a token a long with the message to websocket. I want to check if the token valid or not. So how to return error when the server recieve invalid token in HandleMessage function