title: Rxjs Websocket : how to add headers
body: <p>I'm using websocket in my Angular app using rxjs.</p>
  
  <p>I'm instanciating it like this : i want to add some headers :</p>
  
  <pre><code>myheader : "abcde"
  </code></pre>
  
  <p><strong>how my i do it ?</strong></p>
  
  <p>here is my code:</p>
  
  <pre><code>import { BehaviorSubject, of, Subscription, Subject, Observable, NextObserver } from 'rxjs';
  
  @Injectable()
  export class WebsocketService  {
  
    openConnection() {
      this.close();
      const url = 'wss://echo.websocket.org';
      this.connection$ = webSocket({
        url, 
        openObserver: this.openObserver,
        closeObserver: this.closeObserver,
      });
      this.getmsg();
  
    }
  }
  </code></pre>
  
  <p><strong>Suggestions ?</strong></p>