Esempio n. 1
0
 public static void onClick(PowerUI.MouseEvent e)
 {
     Debug.Log("ONCLICK! " + e.htmlTarget.value);
     if (!string.IsNullOrEmpty(e.htmlTarget.value) && socket != null && socket.IsConnected)
     {
         var payload = JSONObject.Create();
         payload.AddField("data", e.htmlTarget.value);
         Debug.Log("PAYLOAD: " + payload.ToString());
         socket.Emit("action", payload);
     }
 }