write

open suspend override fun write(closeableFrame: FrameWithCloseable, streamPid: Int)

Writes a Frame to the IEndpointInternal.

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

Parameters

closeableFrame

the Frame to write

streamPid

the stream id the Frame belongs to