title: Sending masked data from web socket server to web socket client
body: <p>I have developed the following C code to mask data before sending back to web server client which is java script running on Firefox browser using RFC 6455 Protocol.
  However I am facing problem as I am not able to see anything on client side.
  Some say that its not necessary to mask data when sending from server to client. Is that true ? I can't see that working in my case.
  Let me know if my question is ambiguous somewhere.
  Thanks for your kind help.</p>
  
  <pre><code>char frame[131],message[360];
  strcpy(message,"Server here !");                
  frame[0] = '\x81';
  frame[1] = 128 + strlen(message);
  frame[2] = '\x00';
  frame[3] = '\x00';
  frame[4] = '\x00';
  frame[5] = '\x00';
  snprintf(frame+6, 124, "%s", message);
  printf("%s", frame);
  n = write(newsockfd, frame, strlen(frame));
  </code></pre>