code: function (message, first) {
      if ( first === void 0 ) first = false;
   // 客户端向服务器发送消息
      var that = this;
      if (!that.isRunning || !that.wsHandler) {
        that.cacheSendMessage.push(message);
        console.warn(logCord$2, 'WebSocket is not running .....');
        return
      }
  
      first ? that.cacheSendMessage.unshift(message) : that.cacheSendMessage.push(message);
  
      that._traceLogCacheSendMessageCount();
      lodash.each(that.cacheSendMessage, function (curMessage) {
        // 做好区分的准备
        if (that.config.clientIOType === ClientIOType.SocketIO) {
          that.wsHandler.send(that.config.customSendEventDefine, curMessage);
        } else if (that.config.clientIOType === ClientIOType.EngineIO) {
          that.wsHandler.send(curMessage);
        }
  
        that._traceLogEventsCount();
        that.mc.trigger(TypeMsg$1.OnSendMessageToServer, curMessage);
        that.cacheSendMessage.shift();
      });
      that._traceLogCacheSendMessageCount();
    }
docs: 缓存发送信息部分