Options
Menu

Module Connection and Authentication

Convergence is an engine for realtime collaboration, which implies connectivity to both a central service and likely other users. Similarly, authenticated usage is almost always desired for identification, authorization and consistency advantages.

The Convergence class is the entrance point for most usages.

Index

Variables

configureLogging

configureLogging: configureLogging = Convergence.configureLogging

connect

connect: connect = Convergence.connect

connectAnonymously

connectAnonymously: connectAnonymously = Convergence.connectAnonymously

connectWithJwt

connectWithJwt: connectWithJwt = Convergence.connectWithJwt

connectWithPassword

connectWithPassword: connectWithPassword = Convergence.connectWithPassword

reconnect

reconnect: reconnect = Convergence.reconnect

Type aliases

AuthenticationMethod

AuthenticationMethod: ANONYMOUS | PASSWORD | JWT | RECONNECT

A method of authentication. One of the AuthenticationMethods.

WebSocketFactory

WebSocketFactory: (url: string) => WebSocket

A factory function that returns a WebSocket bound to the provided domain URL.

Type declaration

    • (url: string): WebSocket
    • Parameters

      • url: string

      Returns WebSocket