/// <summary> /// Gets the raw message. /// Http-Get /// </summary> /// <param name="httpurl">Httpurl.</param> public void GetRawMessage(string httpurl) { #if SOCKET_IO_DEBUG debugMethod.Invoke("[SocketIO] " + packet); #endif //directly coroutine.. //TODO:Synchronize better?not realize.. hs.IsSyncHttpDone = false; SCAppMain.Instance().StartCoroutine(hs.GetHttpRequest(httpurl, null)); Log.info(this, "Data sended,[url]:" + httpurl); }
//betMsg public void EmitRawMessage(string rawpacket) { #if SOCKET_IO_DEBUG debugMethod.Invoke("[SocketIO] " + packet); #endif //directly coroutine.. //TODO:Synchronize better?not realize... string urlPath = url + path; hs.IsSyncHttpDone = false; SCAppMain.Instance().StartCoroutine(hs.PostJsonData(urlPath, rawpacket)); Debug.Log("Data sended,[url]:" + urlPath); Debug.Log(" [JsonPayLoad]:" + rawpacket); }