@hocuspocus/common
Advanced tools
@@ -5,3 +5,3 @@ import type { IncomingMessage as HTTPIncomingMessage } from "node:http"; | ||
| import type Document from "./Document.ts"; | ||
| import type { beforeSyncPayload, onStatelessPayload, onTokenSyncPayload } from "./types.ts"; | ||
| import type { beforeSyncPayload, onTokenSyncPayload, onStatelessPayload } from "./types.ts"; | ||
| export declare class Connection { | ||
@@ -42,4 +42,4 @@ webSocket: WebSocket; | ||
| /** | ||
| * Set a callback that will be triggered when on token sync message is received | ||
| */ | ||
| * Set a callback that will be triggered when on token sync message is received | ||
| */ | ||
| onTokenSyncCallback(callback: (payload: onTokenSyncPayload) => Promise<void>): Connection; | ||
@@ -46,0 +46,0 @@ /** |
@@ -8,5 +8,5 @@ import type Connection from "./Connection.ts"; | ||
| constructor(message: IncomingMessage, defaultTransactionOrigin?: string); | ||
| apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): void; | ||
| readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): 0 | 1 | 2; | ||
| apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): Promise<void>; | ||
| readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): Promise<0 | 1 | 2>; | ||
| applyQueryAwarenessMessage(document: Document, reply?: (message: Uint8Array) => void): void; | ||
| } |
+1
-1
| { | ||
| "name": "@hocuspocus/common", | ||
| "description": "shared code for multiple Hocuspocus packages", | ||
| "version": "3.3.1", | ||
| "version": "3.3.2", | ||
| "homepage": "https://hocuspocus.dev", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
228406
0.01%