How to use the dotcms.websocket.disable function in dotcms

To help you get started, we’ve selected a few dotcms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dotCMS / core-web / projects / dotcms-js / src / lib / core / dotcms-config.service.spec.ts View on Github external
service.getConfig().subscribe((configResponse: ConfigParams) => {
            const mock: ConfigParams = {
                colors: configParams.config.colors,
                emailRegex: configParams.config['emailRegex'],
                license: configParams.config.license,
                menu: undefined,
                paginatorLinks: configParams.config['dotcms.paginator.links'],
                paginatorRows: configParams.config['dotcms.paginator.rows'],
                websocket: {
                    websocketReconnectTime:
                        configParams.config.websocket['dotcms.websocket.reconnect.time'],
                    disabledWebsockets: configParams.config.websocket['dotcms.websocket.disable']
                }
            };
            expect(configResponse).toEqual(mock);
            done();
        });
    });

dotcms

This library allows you to interact with DotCMS API's easily from the browser, nodejs and React Native. [Full Documentation](https://dotcms.github.io/core-web/dotcms/)

Unrecognized
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Similar packages