private void OnConnect() { Info("Connected..."); var @params = new JObject { ["user_id"] = "TestClient" }; var topic = "room:lobby"; _chan = _socket.Chan(topic, @params); _chan.On("new_msg", OnLobbyMessage); _chan.Join() .Receive("ok", OnLobbyJoinSuccess) .Receive("error", OnLobbyJoinError); }