write
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.