コード例 #1
0
 public void SendText(string text, Action <bool> callback = null)
 {
     if (_ws == null || !_ws.IsOpen())
     {
         Debug.LogWarning("Web socket is not available to send text message. Try connecting?");
         return;
     }
     _ws.SendAsync(text, callback);
 }