(function (global, factory) {
  if (typeof define === "function" && define.amd) {
    define(["exports", "rxjs/operators", "../internals/actions"], factory);
  } else if (typeof exports !== "undefined") {
    factory(exports, require("rxjs/operators"), require("../internals/actions"));
  } else {
    var mod = {
      exports: {}
    };
    factory(mod.exports, global.operators, global.actions);
    global.consume = mod.exports;
  }
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _operators, _actions) {
  "use strict";

  Object.defineProperty(_exports, "__esModule", {
    value: true
  });
  _exports.default = void 0;

  const consume = function consume() {
    return ws$ => ws$.pipe((0, _operators.map)(([, action]) => action), (0, _operators.filter)(action => action.type === _actions.NEW_MESSAGE), (0, _operators.map)(action => action.data));
  };

  var _default = consume;
  _exports.default = _default;
});
//# sourceMappingURL=consume.js.map