function createBackplane
Since 0.2.0
createBackplane(
services: IServiceRegistry,
origin: string
): IRealtimeBackplane

Creates the transport named by options.transport.

Parameters

The plugin options

services: IServiceRegistry

Registry used to resolve CAPABILITIES.MESSAGING for the 'messaging' arm

origin: string

This instance's identity, used when no origin is configured

Return Type

The transport

Throws

Error

When the 'messaging' arm is selected with no messaging capability registered, or when the transport discriminant is unrecognized

Usage

import { createBackplane } from "realtime-backplane-plugin/src/index.ts";