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();
            url: `${client.config.instanceUrl}/cometd/${client.config.version.toFixed(1)}/`,
            requestHeaders: { Authorization: `OAuth ${client.config.accessToken}` },
            appendMessageTypeToURL: false


Comet and WebSocket library for web messaging

Latest version published 2 months ago

Package Health Score

83 / 100
Full package analysis

Popular cometd functions