code: function send (event, data) {
      var envelope = {
        event: event,
        data: data
      };
      debug('send', envelope);
      socket.send(JSON.stringify(envelope));
    }
docs: Send an event
  @param {string} event
  @param {*} data