title: Sending WebSocket message over C# Socket
body: <p>I was looking at <a href="https://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example?lq=1">Create &quot;Hello World&quot; WebSocket example</a> and began trying to adapt this to send a custom message over the WebSocket that's entered at the console, but I'm having a few issues understanding the code.</p>
  
  <p>My question is what is the correct way to encode my own message so that it can be sent correctly based on the answer I linked above</p>
  
  <pre><code>client.Send(my-own-message);
  </code></pre>