That is indeed a very reasonable solution. Nice W for Mint providing that very neat passive
mode to avoid having to handle incoming messages. Just took a brief look but it looks like it also has a stream
API that might even simplify things further in many cases?
I’d really like to solve the problem in my app without the extra dep, but maybe I’ll find some clues digging through the Mint source.