-
Notifications
You must be signed in to change notification settings - Fork 56
/
liveobjects.d.ts
28 lines (26 loc) · 1.13 KB
/
liveobjects.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// The ESLint warning is triggered because we only use these types in a documentation comment.
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */
import { RealtimeClient } from './ably';
import { BaseRealtime } from './modular';
/* eslint-enable no-unused-vars, @typescript-eslint/no-unused-vars */
/**
* Provides a {@link RealtimeClient} instance with the ability to use LiveObjects functionality.
*
* To create a client that includes this plugin, include it in the client options that you pass to the {@link RealtimeClient.constructor}:
*
* ```javascript
* import { Realtime } from 'ably';
* import LiveObjects from 'ably/liveobjects';
* const realtime = new Realtime({ ...options, plugins: { LiveObjects } });
* ```
*
* The LiveObjects plugin can also be used with a {@link BaseRealtime} client
*
* ```javascript
* import { BaseRealtime, WebSocketTransport, FetchRequest } from 'ably/modular';
* import LiveObjects from 'ably/liveobjects';
* const realtime = new BaseRealtime({ ...options, plugins: { WebSocketTransport, FetchRequest, LiveObjects } });
* ```
*/
declare const LiveObjects: any;
export = LiveObjects;