@sockethub/client 5.0.0-beta.1 → 5.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/replay-store.d.ts +9 -0
- package/dist/sockethub-client.browser.js +105 -15
- package/dist/sockethub-client.d.ts +10 -2
- package/dist/sockethub-client.js +105 -15
- package/dist/sockethub-client.min.js +15 -15
- package/package.json +3 -3
|
@@ -186,6 +186,7 @@ export default class SockethubClient {
|
|
|
186
186
|
private readyWaiters;
|
|
187
187
|
private outboundQueue;
|
|
188
188
|
private outboundSequence;
|
|
189
|
+
private pendingScopedClears;
|
|
189
190
|
private registryFingerprint?;
|
|
190
191
|
private latestReadyInfo?;
|
|
191
192
|
/**
|
|
@@ -215,7 +216,10 @@ export default class SockethubClient {
|
|
|
215
216
|
/**
|
|
216
217
|
* Clear stored credentials to prevent automatic replay on reconnection.
|
|
217
218
|
*
|
|
218
|
-
*
|
|
219
|
+
* Without a scope this removes all stored credentials from memory. Pass
|
|
220
|
+
* `{ platform, actorId }` to clear one account and its saved connection/join
|
|
221
|
+
* replay on a shared client. Matching queued credentials are cancelled too.
|
|
222
|
+
* Useful for
|
|
219
223
|
* security-sensitive applications that want to prevent automatic credential
|
|
220
224
|
* replay when the socket reconnects.
|
|
221
225
|
*
|
|
@@ -227,7 +231,11 @@ export default class SockethubClient {
|
|
|
227
231
|
* });
|
|
228
232
|
* ```
|
|
229
233
|
*/
|
|
230
|
-
clearCredentials(
|
|
234
|
+
clearCredentials(scope?: {
|
|
235
|
+
platform: string;
|
|
236
|
+
actorId: string;
|
|
237
|
+
}): void;
|
|
238
|
+
private emitCancelled;
|
|
231
239
|
/**
|
|
232
240
|
* Return the platform registry discovered from the server.
|
|
233
241
|
*/
|