code: function receive(message) {
          message = JSON.parse(message);
          _debug("receive: parsed message", message);
  
          if (!receivers[message.type])
              return; // ignore bad message types
          if (!hasLocal(message.to)) {
              if (typeof options.onmessagelost === "function") {
                  options.onmessagelost(message);
              }
              // ignore messages to non-existant or forgotten promises
              return;
          }
          receivers[message.type](message);
      }
docs: message receiver