mirror of
https://github.com/kataras/iris.git
synced 2026-01-05 19:27:05 +00:00
add iris websocket client side for Go and a simple chat example
Former-commit-id: af1c555b6b092a3d0484fee2e200fd8767d7239e
This commit is contained in:
@@ -400,7 +400,7 @@ func (c *connection) startReader() {
|
||||
|
||||
_, data, err := conn.ReadMessage()
|
||||
if err != nil {
|
||||
if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway) {
|
||||
if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) {
|
||||
c.FireOnError(err)
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user