interface IOInterface<I> { receive?(io,
handler): void; send?(io,
message): boolean; } Methods
Optional
receive
- receive(io, handler): void
Parameters
- io: I
- handler: ((message) => boolean)
- (message): boolean
Returns boolean
Returns void
Optional
send
- send(io, message): boolean
Returns boolean
Common interface for I/O