I'm using the network module to interact with unix sockets but im having trouble thinking of how I can get a sort of request/event system working. I'm able to send requests and receive events but i cant think of how to make my functions directly return the response in the receiving channel. is there any examples or ideas on how I can achieve this kind of behavior?
Currently I just have a rudimentary wrapper around it, with a read channel and write channel
And since I am dealing with packets of bytes, I would need to find a better way to be able to structure them in my client