code: function sendStats(socket, stats, force) {
      if (!socket || !stats) return;
      if (!force && stats && stats.assets && stats.assets.every(function (asset) {
          return !asset.emitted;
      })) return;
      socket.emit("hash", stats.hash);
      if (stats.errors.length > 0)
          socket.emit("errors", stats.errors);
      else if (stats.warnings.length > 0)
          socket.emit("warnings", stats.warnings);
      else
          socket.emit("ok");
  }
docs: Sends signals and stats in socket
  @param {WebSocket} socket
  @param {Object} stats Webpack generated stats
  @param {Boolean} force