Const
Provides a BaseRest or BaseRealtime instance with the ability to make HTTP requests using the browser’s Fetch API.
To create a client that includes this plugin, include it in the client options that you pass to the constructor:
import { BaseRealtime, WebSocketTransport, FetchRequest } from 'ably/modular';const realtime = new BaseRealtime({ ...options, plugins: { WebSocketTransport, FetchRequest } }); Copy
import { BaseRealtime, WebSocketTransport, FetchRequest } from 'ably/modular';const realtime = new BaseRealtime({ ...options, plugins: { WebSocketTransport, FetchRequest } });
Generated using TypeDoc
Provides a BaseRest or BaseRealtime instance with the ability to make HTTP requests using the browser’s Fetch API.
To create a client that includes this plugin, include it in the client options that you pass to the constructor: