How to use @deepstream/client - 2 common examples

To help you get started, we’ve selected a few @deepstream/client 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 deepstreamIO / deepstream.io / test-e2e / framework / client-handler.ts View on Github external
function createClient (clientName: string, server: string, options?: any) {
  const serverUrl = global.e2eHarness.getUrl(server)
  // @ts-ignore
  const client = new DeepstreamClient(serverUrl, {
    ...options,
    subscriptionInterval: 5,
    maxReconnectInterval: 300,
    maxReconnectAttempts: 20,
    rpcAcceptTimeout: 100,
    rpcResponseTimeout: 300,
    subscriptionTimeout: 100,
    recordReadAckTimeout: 100,
    recordReadTimeout: 50,
    recordDeleteTimeout: 100,
    recordDiscardTimeout: 100,
    intervalTimerResolution: 1,
    offlineEnabled: false,
    offlineBufferTimeout: 10000,
    nativeTimerRegistry: false,
    initialRecordVersion: 1,
github deepstreamIO / deepstream.io / test-e2e / framework / client-handler.ts View on Github external
function createClient (clientName: string, server: string, options?: any) {
  const deepstreamUrl = global.e2eHarness.getUrl(server)
  // @ts-ignore
  const client = new DeepstreamClient(`${deepstreamUrl}-v4`, {
    ...options,
    subscriptionInterval: 5,
    maxReconnectInterval: 300,
    maxReconnectAttempts: 20,
    rpcAcceptTimeout: 100,
    rpcResponseTimeout: 300,
    subscriptionTimeout: 100,
    recordReadAckTimeout: 100,
    recordReadTimeout: 50,
    recordDeleteTimeout: 100,
    recordDiscardTimeout: 100,
    intervalTimerResolution: 1,
    offlineEnabled: false,
    offlineBufferTimeout: 10000,
    nativeTimerRegistry: false,
    initialRecordVersion: 1,

@deepstream/client

the javascript client for deepstreamIO

MIT
Latest version published 2 months ago

Package Health Score

74 / 100
Full package analysis

Popular @deepstream/client functions