mirror of
https://github.com/coder/code-server.git
synced 2026-05-07 12:57:26 +02:00
* Implements the fs module * Add stats object * Add not implemented to createWriteStream * Update mkdtemp to use tmp dir * Unexport Stats * Add client web socket for commands and restructure
10 lines
256 B
TypeScript
10 lines
256 B
TypeScript
export interface SendableConnection {
|
|
send(data: Buffer | Uint8Array): void;
|
|
}
|
|
|
|
export interface ReadWriteConnection extends SendableConnection {
|
|
onMessage(cb: (data: Uint8Array | Buffer) => void): void;
|
|
onClose(cb: () => void): void;
|
|
close(): void;
|
|
}
|