diff --git a/client.go b/client.go index 81728b5..2977c6a 100644 --- a/client.go +++ b/client.go @@ -34,7 +34,7 @@ func NewClient(id string, path string, o *ClientOptions, conn *websocket.Conn) C messageType: websocket.TextMessage, } - c.run() + go c.run() return c }