Variable RestConst

Rest: unknown

Provides REST-related functionality to a BaseRealtime client.

To create a client that includes this plugin, include it in the client options that you pass to the constructor:

import { BaseRealtime, WebSocketTransport, FetchRequest, Rest } from 'ably/modular';
const realtime = new BaseRealtime({ ...options, plugins: { WebSocketTransport, FetchRequest, Rest } });

When provided, the following functionality becomes available:

If this plugin is not provided, then trying to use the above functionality will cause a runtime error.

Generated using TypeDoc