title: Can a WebSocket switch its binaryType on the fly?
body: <p>In JavaScript, when you instantiate a WebSocket:</p>
  
  <pre><code>ws = new WebSocket(url);
  </code></pre>
  
  <p>you can set it's binaryType:</p>
  
  <pre><code>ws.binaryType = "blob";
  // or
  ws.binaryType = "arraybuffer";
  </code></pre>
  
  <p>Question:
  Can I change binaryType on the fly?</p>
  
  <p>For example if I wanted to use the same WS instance to interleave both text and binary messages, could I do the following?</p>
  
  <pre><code>ws = new WebSocket(url);
  // Send text
  ws.binaryType = "blob";
  ws.send("this is text");
  // Now send binary data
  ws.binaryType = "arraybuffer";
  var ab = new ArrayBuffer(...); 
  ws.send(ab);
  </code></pre>
  
  <p>In reading the W3C WebSocket spec, I didn't see anything that explicitly says "you can't change binaryType", but every example/usage of WebSocket that I've seen sets binaryType once then never changes it, which sorta suggests that it can't be changed.</p>
  
  <p>Any info would be appreciated.</p>