public void Send(int userid, string type, GenericData data) { GenericData send = new GenericData(); send.Set("to", userid); send.Set("type", type); send.Set("msg", JsonConvert.SerializeObject(data.GetValues())); string finaldata = JsonConvert.SerializeObject(send.GetValues()); RKLog.Log("send request to socket " + finaldata, "socketcontroller"); _websocket.Send(finaldata); }