title: problem in using stompjs using angular application
body: <p>This is my code for app component ts where I want to communicate to a websocket (for which I installed <code>sockjs-client</code> and <code>stompjs</code>). I don't know how to solve the error.</p>
  
  <pre class="lang-js prettyprint-override"><code>import { Component } from '@angular/core';
  import * as Stomp from 'stompjs';
  import * as SockJS from 'sockjs-client';
  import $ from 'jquery';
  
  @Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
    private serverUrl = 'http://localhost:8080/socket'
    private title = 'WebSockets chat';
    private stompClient;
  
    constructor(){
      this.initializeWebSocketConnection();
    }
  
    initializeWebSocketConnection(){
      let ws = new SockJS(this.serverUrl);
      this.stompClient = Stomp.over(ws);
      let that = this;
      this.stompClient.connect({}, function(frame) {
        that.stompClient.subscribe("/chat", (message) =&gt; {
          if(message.body) {
            $(".chat").append("&lt;div class='message'&gt;"+message.body+"&lt;/div&gt;")
            console.log(message.body);
          }
        });
      });
    }
  
    sendMessage(message){
      this.stompClient.send("/app/send/message" , {}, message);
      $('#input').val('');
    }
  
  }
  </code></pre>
  
  <p>This is the following error that I perform ng-serve:</p>
  
  <pre><code>ERROR in ./node_modules/stompjs/lib/stomp-node.js
  Module not found: Error: Can't resolve 'net' in 'C:\Users\drnic\Desktop\Messaging app\Front-end\bantachat2\node_modules\stompjs\lib'
  </code></pre>