title: How to process messages with django-channels 2?
body: <p>Within my Django project, I created a notification app that detect whenever a specific model is saved and push a notification to all clients (based on 
  <a href="https://arunrocks.com/understanding-django-channels/" rel="nofollow noreferrer">https://arunrocks.com/understanding-django-channels/</a> and
  <a href="https://github.com/arocks/channels-example" rel="nofollow noreferrer">https://github.com/arocks/channels-example</a>
  ). I have updated my code to Channels 2 and I have now an issue with the javascript wrapper which has been removed in the django-channels 2(<a href="https://stackoverflow.com/questions/53468845/how-to-locate-websocketbridge-js-in-django-using-channels-websocket">How to locate websocketbridge.js in Django using channels websocket?</a>)</p>
  
  <p>Before I had a script that processes messages:</p>
  
  <pre><code>&lt;script&gt;
    document.addEventListener('DOMContentLoaded', function() {
      const webSocketBridge = new channels.WebSocketBridge();
      const nl = document.querySelector("#notifylist");
  
      webSocketBridge.connect('/notifications/');
      webSocketBridge.listen(function(action, stream) {
        console.log("RESPONSE:", action);
        if(action.event == "New User") {
          var el = document.createElement("li");
          el.innerHTML = action.text;
          nl.appendChild(el);
        }
      })
    })
  &lt;/script&gt;
  </code></pre>
  
  <p>This script doesn't work anymore. They suggested to replace WebSocketBridge.js by ReconnectingWebSocket.js but I don't know how I can adapt my previous script in order to use ReconnectingWebSocket.js. </p>
  
  <p>Has anyone updated his/her code by using ReconnectingWebSocket? If so, could you, please, provide an example.</p>
  
  <p>Many thanks in advance for your help.</p>