@hocuspocus/common 2.13.5-rc.0 → 2.13.6
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.
|
@@ -44,7 +44,7 @@ export declare class Hocuspocus {
|
|
|
44
44
|
/**
|
|
45
45
|
* Start the server
|
|
46
46
|
*/
|
|
47
|
-
listen(portOrCallback?: number | ((data: onListenPayload) => Promise<any>) | null, callback?: any): Promise<Hocuspocus>;
|
|
47
|
+
listen(portOrCallback?: number | ((data: onListenPayload) => Promise<any>) | null, callback?: any, websocketOptions?: WebSocket.ServerOptions): Promise<Hocuspocus>;
|
|
48
48
|
get address(): AddressInfo;
|
|
49
49
|
get URL(): string;
|
|
50
50
|
get webSocketURL(): string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { IncomingMessage, Server as HTTPServer, ServerResponse } from 'http';
|
|
3
|
-
import { WebSocketServer } from 'ws';
|
|
3
|
+
import { ServerOptions, WebSocketServer } from 'ws';
|
|
4
4
|
import { Hocuspocus } from './Hocuspocus.js';
|
|
5
5
|
export declare class Server {
|
|
6
6
|
httpServer: HTTPServer;
|
|
7
7
|
webSocketServer: WebSocketServer;
|
|
8
8
|
hocuspocus: Hocuspocus;
|
|
9
|
-
constructor(hocuspocus: Hocuspocus);
|
|
9
|
+
constructor(hocuspocus: Hocuspocus, websocketOptions?: ServerOptions);
|
|
10
10
|
setupWebsocketConnection: () => void;
|
|
11
11
|
setupHttpUpgrade: () => void;
|
|
12
12
|
requestHandler: (request: IncomingMessage, response: ServerResponse) => Promise<void>;
|