The Classic Akka API provides IO.Udp object which implements a UDP connection. When a new port is opened the Udp actor responds with Bound() event. In the classic system, I suppose to save the sender() of this message to communicate with the actor later on (Using UDP • Akka Documentation).
But in the typed system, I cannot get the sender actor reference, so I can receive from the socket, but can’t send anything. The only solution I see is to spawn a classic child of my typed actor, which will “translate” all the messages back to the typed annotating with the sender(). But this looks quite clunky.
I cannot find a relevant implementation in akka-typed. Alpakka seems to be an overkill for me, and I cannot find any examples for usage of alpakka with UDP Multicast.