title: dart:html WebSocket vs dart:io WebSocket
body: <p>I was looking out for a sample WebSocket implementation on DartPad.</p>
  
  <p>Here's a link to the implementation: <a href="https://dartpad.dartlang.org/cb9b199b1085873de191e32a1dd5ca4f" rel="nofollow noreferrer">WebSocket Sample</a></p>
  
  <p>However, while trying to implement the same on my local machine, I encountered that Dart has two implementations of the <code>WebSocket</code> class.</p>
  
  <p>One is provided in the <code>dart:io</code> package and another is provided in <code>dart:html</code> package.</p>
  
  <p>Can anyone provide what's the difference between the two and what are the advantages of one over the other?</p>