Interface: ConnectionReceiver
Defined in: netconf/src/transport/types.ts:34
What a connection delivers to. Called synchronously, in order.
Methods
close()
ts
close(error?): void;Defined in: netconf/src/transport/types.ts:40
The connection is gone: called exactly once, last, with the error when it failed.
Parameters
error?
Error
Returns
void
data()
ts
data(chunk): void;Defined in: netconf/src/transport/types.ts:36
Bytes received. The array is the receiver's to keep.
Parameters
chunk
Uint8Array
Returns
void
end()
ts
end(): void;Defined in: netconf/src/transport/types.ts:38
The peer ended its sending side: no more data follows. close() comes when the connection closes.
Returns
void