UNPKG

@tygr/socket

Version:

Use websockets to extend redux functionality to server code

15 lines 452 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const SocketActions = require("./socket.actions"); function ofClientType(type) { return (action) => { if (action.type === SocketActions.CLIENT_ACTION) { if (action.action.type === type) { return true; } } return false; }; } exports.ofClientType = ofClientType; //# sourceMappingURL=of-client-type.js.map