interface IoInterface { name: string; read(): Promise< | null | string | Buffer | Uint8Array>; write(data: string): Promise<void>; } Properties
Methods
read
- read(): Promise<
| null
| string
| Buffer
| Uint8Array> Returns Promise<
| null
| string
| Buffer
| Uint8Array>
write
- write(data): Promise<void>
Returns Promise<void>
Theoretically, any bidirectional channel with read and write can be used to build a RPC interface.