abstract fun processOutgoingFrame(frame: Frame): Frame
This method is called on each outgoing frame and handle it before sending.