title: WebSocket is not able to send large data
body: <p>How can I send Large data to WebSocket in Java Script?</p>
  
  <p>Using below code I am able to send data for 126 characters but not more then this. (Written in C#)</p>
  
  <pre><code>public static void SendData(string text)
      {
  
          foreach (SocketClient client in ClientList)
          {
              if (client.Client.Connected)
              {
                  try
                  {
  
                      NetworkStream l_Stream = client.Client.GetStream();
  
                      List&lt;byte&gt; lb = new List&lt;byte&gt;();
                      lb = new List&lt;byte&gt;();
                      lb.Add(0x81);
                      int size = text.Length;
                      lb.Add((byte)size);
                      lb.AddRange(Encoding.UTF8.GetBytes(text));
                      l_Stream.Write(lb.ToArray(), 0, size + 2);
  
                  }
                  catch
                  {
                      CloseClient(client);
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Can someone please help me? I tried to use so many things but none of them are working for me.</p>
  
  <p>I am using Chrome 25 for the same.</p>