Files
FrenoCorp/node_modules/lib0/websocket.d.ts
Michael Freno 7c684a42cc FRE-600: Fix code review blockers
- Consolidated duplicate UndoManagers to single instance
- Fixed connection promise to only resolve on 'connected' status
- Fixed WebSocketProvider import (WebsocketProvider)
- Added proper doc.destroy() cleanup
- Renamed isPresenceInitialized property to avoid conflict

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-25 00:08:01 -04:00

38 lines
994 B
TypeScript

/**
* @deprecated
* @extends Observable<string>
*/
export class WebsocketClient extends Observable<string> {
/**
* @param {string} url
* @param {object} opts
* @param {'arraybuffer' | 'blob' | null} [opts.binaryType] Set `ws.binaryType`
*/
constructor(url: string, { binaryType }?: {
binaryType?: "arraybuffer" | "blob" | null | undefined;
});
url: string;
/**
* @type {WebSocket?}
*/
ws: WebSocket | null;
binaryType: "arraybuffer" | "blob" | null;
connected: boolean;
connecting: boolean;
unsuccessfulReconnects: number;
lastMessageReceived: number;
/**
* Whether to connect to other peers or not
* @type {boolean}
*/
shouldConnect: boolean;
_checkInterval: NodeJS.Timeout;
/**
* @param {any} message
*/
send(message: any): void;
disconnect(): void;
connect(): void;
}
import { Observable } from './observable.js';
//# sourceMappingURL=websocket.d.ts.map