title: Error: Property type is missing on the socket message
body: <p>I am using <code>Ngxs WebSocketPlugin</code> in the angular application and trying to connect the socket with the following syntax:</p>
  <pre><code>this.store.dispatch(new ConnectWebSocket({url, typeKey:'event'}));
  </code></pre>
  <p>While listening to the socket, I am getting the below server object via socket event:</p>
  <pre><code>{
      &quot;event&quot;: &quot;chat-state-change&quot;,
      &quot;payload&quot;: {
          &quot;changeInitiatedFrom&quot;: &quot;message-marked-read&quot;,
          &quot;patientChatState&quot;: {
              &quot;__v&quot;: 0,
              &quot;_id&quot;: &quot;6281f4859bfa6d002a00adfb&quot;,
              &quot;clinic&quot;: &quot;60a7892aeb945000292c56d8&quot;,
              &quot;createdAt&quot;: &quot;2022-05-16T06:51:49.385Z&quot;,
              &quot;id&quot;: &quot;6281f4859bfa6d002a00adfb&quot;,
              &quot;patient&quot;: {
                  &quot;_id&quot;: &quot;6281f464014ec5001f552401&quot;,
                  &quot;firstName&quot;: &quot;Himesh&quot;,
                  &quot;gender&quot;: &quot;male&quot;,
                  &quot;id&quot;: &quot;6281f464014ec5001f552401&quot;,
                  &quot;lastName&quot;: &quot;Kumar&quot;,
                  &quot;mrn&quot;: &quot;sdfasdf&quot;
              },
              &quot;primaryCareprovider&quot;: &quot;627cc522088361001fc9b51a&quot;,
              &quot;program&quot;: &quot;60a7837502a6280029dea078&quot;,
              &quot;readIndex&quot;: 9,
              &quot;site&quot;: &quot;60a789b602a6280029dea07d&quot;,
              &quot;twillioChannelName&quot;: &quot;chat-group-patient-careProvider-6281f464014ec5001f552401&quot;,
              &quot;unreadCount&quot;: 0,
              &quot;updatedAt&quot;: &quot;2022-05-31T16:29:31.400Z&quot;
          }
      },
      &quot;broadcastType&quot;: &quot;user&quot;,
      &quot;users&quot;: null
  }
  </code></pre>
  <p>Now I am getting the error in the console:</p>
  <pre><code>Error: Property type is missing on the socket message
      at Object.next (ngxs-websocket-plugin.js:296:1)
  </code></pre>
  <p>.
  As per documentation, we can pass custom <strong>typeKey</strong> in <strong>ConnectWebSocket()</strong> method but even after passing the typeKey value 'event', it is taking default value 'type'.</p>
  <p>Let me know if I need some improvements.</p>