implemented frontend including separate message system; started to implement backend
This commit is contained in:
38
yjs-poll/node_modules/lib0/websocket.d.ts
generated
vendored
Normal file
38
yjs-poll/node_modules/lib0/websocket.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* @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
|
||||
Reference in New Issue
Block a user