code: function (msg) {
      var self = this;
      if (self.socket) {
        if (Meteor._printSentDDP)
          Meteor._debug("Sent DDP", stringifyDDP(msg));
        self.socket.send(stringifyDDP(msg));
      }
    }
docs: Send a message (doing nothing if no socket is connected right now.) It should be a JSON object (it will be stringified.)