lml-main
Version:
This is now a mono repository published into many standalone packages.
20 lines • 894 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PUSHER_CONNECT = '@@pusher/CONNECT';
exports.PUSHER_DISCONNECT = '@@pusher/DISCONNECT';
exports.PUSHER_CONNECTION_SUCCESS = '@@pusher/CONNECTION_SUCCESS';
exports.PUSHER_CONNECTION_ERROR = '@@pusher/CONNECTION_ERROR';
exports.pusherConnect = function (key, cluster, options) {
if (options === void 0) { options = {}; }
return ({ type: exports.PUSHER_CONNECT, key: key, cluster: cluster });
};
exports.pusherDisconnect = function () {
return ({ type: exports.PUSHER_DISCONNECT });
};
exports.pusherConnectionSuccess = function (client, result) {
return ({ type: exports.PUSHER_CONNECTION_SUCCESS, client: client, result: result });
};
exports.pusherConnectionError = function (error) {
return ({ type: exports.PUSHER_CONNECTION_ERROR, error: error });
};
//# sourceMappingURL=connect.js.map