@mescius/js-collaboration 18.2.5 → 19.0.1
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/dist/index.d.ts +12 -0
- package/dist/index.js +12 -1
- package/package.json +2 -4
- package/wrapper.mjs +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,13 @@ export interface IServerConfig {
|
|
|
74
74
|
* The request path for the server. Defaults to '/collaboration/'.
|
|
75
75
|
*/
|
|
76
76
|
path?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Custom Socket.IO adapter for multi-node/distributed deployments.
|
|
79
|
+
* Allows integration with various message brokers (Redis, MongoDB, PostgreSQL, etc.)
|
|
80
|
+
* to enable message broadcasting across multiple server instances.
|
|
81
|
+
* @see https://socket.io/docs/v4/adapter/
|
|
82
|
+
*/
|
|
83
|
+
socketIoAdapter?: any;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export interface IFeature {
|
|
@@ -87,6 +94,11 @@ export interface IFeature {
|
|
|
87
94
|
export declare class Server {
|
|
88
95
|
constructor(config?: IServerConfig);
|
|
89
96
|
|
|
97
|
+
/**
|
|
98
|
+
* License key for server validation and collaboration features.
|
|
99
|
+
*/
|
|
100
|
+
licenseKey: string;
|
|
101
|
+
|
|
90
102
|
/**
|
|
91
103
|
* Registers multiple middlewares to the server in a batch.
|
|
92
104
|
* @param {IMiddlewares} middlewares - The middlewares to register.
|