@hocuspocus/extension-throttle 3.2.2 → 3.2.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.
@@ -2,11 +2,16 @@ import type { Event, MessageEvent } from "ws";
2
2
  import EventEmitter from "./EventEmitter.ts";
3
3
  import type { HocuspocusProvider } from "./HocuspocusProvider.ts";
4
4
  import { WebSocketStatus, type onAwarenessChangeParameters, type onAwarenessUpdateParameters, type onCloseParameters, type onDisconnectParameters, type onMessageParameters, type onOpenParameters, type onOutgoingMessageParameters, type onStatusParameters } from "./types.ts";
5
- export type HocusPocusWebSocket = WebSocket & {
5
+ export type HocuspocusWebSocket = WebSocket & {
6
6
  identifier: string;
7
7
  };
8
+ export type HocusPocusWebSocket = HocuspocusWebSocket;
8
9
  export type HocuspocusProviderWebsocketConfiguration = Required<Pick<CompleteHocuspocusProviderWebsocketConfiguration, "url">> & Partial<CompleteHocuspocusProviderWebsocketConfiguration>;
9
10
  export interface CompleteHocuspocusProviderWebsocketConfiguration {
11
+ /**
12
+ * Whether to connect automatically when creating the provider instance. Default=true
13
+ */
14
+ autoConnect: boolean;
10
15
  /**
11
16
  * URL of your @hocuspocus/server instance
12
17
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hocuspocus/extension-throttle",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "hocuspocus throttle extension",
5
5
  "homepage": "https://hocuspocus.dev",
6
6
  "keywords": [
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@hocuspocus/server": "^3.2.2"
31
+ "@hocuspocus/server": "^3.2.3"
32
32
  },
33
33
  "gitHead": "b3454a4ca289a84ddfb7fa5607a2d4b8d5c37e9d"
34
34
  }