write

abstract suspend fun write(frame: Frame, streamPid: Int)(source)

Writes a Frame to the IEndpointInternal.

The Frame.close must be called when the frame has been processed and the Frame.rawBuffer is not used anymore. The IEndpointInternal must called Frame.close even if the frame is dropped or it somehow crashes.

Parameters

frame

the Frame to write

streamPid

the stream id the Frame belongs to