Add evaluate
This commit is contained in:
9
packages/server/src/common/connection.ts
Normal file
9
packages/server/src/common/connection.ts
Normal file
@ -0,0 +1,9 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user