close connection on ws error
This commit is contained in:
parent
d80395fd6e
commit
5e76b76c31
|
@ -371,6 +371,8 @@ func wsController(c echo.Context) error {
|
|||
_, msg, err := ws.ReadMessage()
|
||||
|
||||
if err != nil {
|
||||
ws.Close()
|
||||
fmt.Printf("%+v\n", "Connection closed")
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue