you need to send one thing to make the socket latch onto you, after rereading the code, it does NOT need to be a mavlink packet… so you could send a 1 byte packet, and that should be enough.
the other option is to modify the mavlink router config via the herelink OEM settings. then you can define anything you want in that config file