Can I stream receive from the network?

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.

Avoiding extra deps is certainly a noble cause, but Mint is rather low-level, very stable, and very well tested (it’s the backbone of Finch and Req, two very popular higher level clients). That’s all to say: if you had to add a dep, there are worse ones to rely on than Mint!

1 Like