
      <span style="color: #000000;">}</span>
      <span style="color: #5e6d03;">break</span><span style="color: #000000;">;</span>
  <span style="color: #000000;">}</span>
<span style="color: #000000;">}</span></code></pre>
   </div>
   <div>
        Again, most of the code is adapted from the previous examples, only the WebSocket part is new.
   </div>
   <div>
        <br>
   </div>
   <div>
        There are different types of WebSocket messages, but we're only interested in the text type, because the 