-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c56e25a
commit 59ce31b
Showing
22 changed files
with
1,560 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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, RestClient } from './ably'; | ||
import { BaseRest, BaseRealtime, Rest } from './modular'; | ||
/* eslint-enable no-unused-vars, @typescript-eslint/no-unused-vars */ | ||
|
||
/** | ||
* Provides a {@link RestClient} or {@link RealtimeClient} instance with the ability to be activated as a target for push notifications. | ||
* | ||
* To create a client that includes this plugin, include it in the client options that you pass to the {@link RestClient.constructor} or {@link RealtimeClient.constructor}: | ||
* | ||
* ```javascript | ||
* import { Realtime } from 'ably'; | ||
* import Push from 'ably/push'; | ||
* const realtime = new Realtime({ ...options, plugins: { Push } }); | ||
* ``` | ||
* | ||
* The Push plugin can also be used with a {@link BaseRest} or {@link BaseRealtime} client, with the additional requirement that you must also use the {@link Rest} plugin | ||
* | ||
* ```javascript | ||
* import { BaseRealtime, Rest, WebSocketTransport, FetchRequest } from 'ably/modular'; | ||
* import Push from 'ably/push'; | ||
* const realtime = new BaseRealtime({ ...options, plugins: { Rest, WebSocketTransport, FetchRequest, Push } }); | ||
* ``` | ||
*/ | ||
declare const Push: any; | ||
|
||
export = Push; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.