16 lines
345 B
JavaScript
16 lines
345 B
JavaScript
import { Buffer } from 'buffer';
|
|
|
|
export class AsyncProcedureCallEndpoint {
|
|
/**
|
|
* Constructs an AsyncProcedureCallEndpoint object.
|
|
* @param {any} input - stream of data sent by remote.
|
|
* @param {any} output - stream of data to send to remote.
|
|
*/
|
|
constructor(input, output) {
|
|
this.buf = Buffer();
|
|
input.ondata = () => {
|
|
|
|
};
|
|
}
|
|
};
|