How to use cometd - 1 common examples

To help you get started, we’ve selected a few cometd 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 ChuckJonas / ts-force / ts-force / src / streaming / stream.ts View on Github external
constructor(client?: Rest) {
        client = client || new Rest();

        this.subscribers = new Map();
        this.listener = new CometD();
        this.listener.configure({
            url: `${client.config.instanceUrl}/cometd/${client.config.version.toFixed(1)}/`,
            requestHeaders: { Authorization: `OAuth ${client.config.accessToken}` },
            appendMessageTypeToURL: false
        });
    }

cometd

Comet and WebSocket library for web messaging

Apache-2.0
Latest version published 2 months ago

Package Health Score

62 / 100
Full package analysis

Popular cometd functions