@tygr/socket
Version:
Use websockets to extend redux functionality to server code
23 lines • 690 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@tygr/core");
const SOCKET_1 = require("./SOCKET");
class SocketConfig {
constructor() {
this.port = 4200;
this.angular = {
staticDirs: ['../../dist'],
index: '../../dist/index.html'
};
this.ws = 'ws://localhost:4200';
}
}
exports.SocketConfig = SocketConfig;
const baseConfig = new SocketConfig();
function socketConfig() {
return core_1.getConfig(SOCKET_1.SOCKET).then(conf => {
return Object.assign({}, baseConfig, conf);
});
}
exports.socketConfig = socketConfig;
//# sourceMappingURL=socket.config.js.map