Index: trip-planner-front/node_modules/ws/lib/event-target.js
===================================================================
--- trip-planner-front/node_modules/ws/lib/event-target.js	(revision 6a3a178323fd905112b5392bd9d3cb83b66ef2d3)
+++ trip-planner-front/node_modules/ws/lib/event-target.js	(revision e29cc2ea91f8c99a4329f6d20188305dfd752279)
@@ -11,6 +11,5 @@
    *
    * @param {String} type The name of the event
-   * @param {Object} target A reference to the target to which the event was
-   *     dispatched
+   * @param {Object} target A reference to the target to which the event was dispatched
    */
   constructor(type, target) {
@@ -31,6 +30,5 @@
    *
    * @param {(String|Buffer|ArrayBuffer|Buffer[])} data The received data
-   * @param {WebSocket} target A reference to the target to which the event was
-   *     dispatched
+   * @param {WebSocket} target A reference to the target to which the event was dispatched
    */
   constructor(data, target) {
@@ -51,10 +49,7 @@
    * Create a new `CloseEvent`.
    *
-   * @param {Number} code The status code explaining why the connection is being
-   *     closed
-   * @param {String} reason A human-readable string explaining why the
-   *     connection is closing
-   * @param {WebSocket} target A reference to the target to which the event was
-   *     dispatched
+   * @param {Number} code The status code explaining why the connection is being closed
+   * @param {String} reason A human-readable string explaining why the connection is closing
+   * @param {WebSocket} target A reference to the target to which the event was dispatched
    */
   constructor(code, reason, target) {
@@ -77,6 +72,5 @@
    * Create a new `OpenEvent`.
    *
-   * @param {WebSocket} target A reference to the target to which the event was
-   *     dispatched
+   * @param {WebSocket} target A reference to the target to which the event was dispatched
    */
   constructor(target) {
@@ -96,6 +90,5 @@
    *
    * @param {Object} error The error that generated this event
-   * @param {WebSocket} target A reference to the target to which the event was
-   *     dispatched
+   * @param {WebSocket} target A reference to the target to which the event was dispatched
    */
   constructor(error, target) {
@@ -117,14 +110,9 @@
    * Register an event listener.
    *
-   * @param {String} type A string representing the event type to listen for
+   * @param {String} method A string representing the event type to listen for
    * @param {Function} listener The listener to add
-   * @param {Object} [options] An options object specifies characteristics about
-   *     the event listener
-   * @param {Boolean} [options.once=false] A `Boolean`` indicating that the
-   *     listener should be invoked at most once after being added. If `true`,
-   *     the listener would be automatically removed when invoked.
    * @public
    */
-  addEventListener(type, listener, options) {
+  addEventListener(method, listener) {
     if (typeof listener !== 'function') return;
 
@@ -145,20 +133,18 @@
     }
 
-    const method = options && options.once ? 'once' : 'on';
-
-    if (type === 'message') {
+    if (method === 'message') {
       onMessage._listener = listener;
-      this[method](type, onMessage);
-    } else if (type === 'close') {
+      this.on(method, onMessage);
+    } else if (method === 'close') {
       onClose._listener = listener;
-      this[method](type, onClose);
-    } else if (type === 'error') {
+      this.on(method, onClose);
+    } else if (method === 'error') {
       onError._listener = listener;
-      this[method](type, onError);
-    } else if (type === 'open') {
+      this.on(method, onError);
+    } else if (method === 'open') {
       onOpen._listener = listener;
-      this[method](type, onOpen);
+      this.on(method, onOpen);
     } else {
-      this[method](type, listener);
+      this.on(method, listener);
     }
   },
@@ -167,14 +153,14 @@
    * Remove an event listener.
    *
-   * @param {String} type A string representing the event type to remove
+   * @param {String} method A string representing the event type to remove
    * @param {Function} listener The listener to remove
    * @public
    */
-  removeEventListener(type, listener) {
-    const listeners = this.listeners(type);
+  removeEventListener(method, listener) {
+    const listeners = this.listeners(method);
 
-    for (let i = 0; i < listeners.length; i++) {
+    for (var i = 0; i < listeners.length; i++) {
       if (listeners[i] === listener || listeners[i]._listener === listener) {
-        this.removeListener(type, listeners[i]);
+        this.removeListener(method, listeners[i]);
       }
     }
