Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
code-server/packages/server/src/common/connection.ts
Kyle Carberry cff746db32 Add evaluate
2019-02-05 11:15:44 -06:00

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;
}