code: function parseResponse(event) {
              try {
                  var response = JSON.parse(event.data);
  
                  // Check for success key to ignore messages being sent
                  if (response.namespace === namespace && typeof response.success === 'boolean') {
                      return response;
                  }
  
                  return false;
              } catch (e) {}
  
              return false;
          }
docs: Verifies that a message is intended for the transport.
  @param {MessageEvent} event
  @returns {boolean} - Whether the message was successfully parsed.