procbridge
procbridge copied to clipboard
help pls
I would like to ask, how do I make it so that (let's say a chat) others have messages visible, etc. or how does it work? because I don't see any connections except 127.0.0.1:port (either I'm so stupid or xs)
Hi, @doodooaw, this repo can be used to quickly implement cross-process communication, i.e., bidirectional data transfer between programs or modules. May I ask if this is what you need?
like is there a way to send a request in the opposite direction (from server to client)
@wtflol123 The client must be the initiator in the protocol. But you can implement server-side push by the following method.
- the client initiates a "waiting for new messages" request
- the server receives the request and does not return immediately, but blocks
- when the server has a message available, then release the blocking lock and return