Auto-send message on encode if transport is defined