1
0
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:
Gerasimos (Makis) Maropoulos
2019-02-09 04:28:00 +02:00
parent d30f17eb3f
commit 280872fd59
9 changed files with 536 additions and 226 deletions

View File

@@ -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