procbridge icon indicating copy to clipboard operation
procbridge copied to clipboard

help pls

Open doodooaw opened this issue 3 years ago • 3 comments

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)

doodooaw avatar Feb 17 '22 22:02 doodooaw

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?

gongzhang avatar Feb 18 '22 03:02 gongzhang

like is there a way to send a request in the opposite direction (from server to client)

CobingDaily avatar Feb 19 '22 20:02 CobingDaily

@wtflol123 The client must be the initiator in the protocol. But you can implement server-side push by the following method.

  1. the client initiates a "waiting for new messages" request
  2. the server receives the request and does not return immediately, but blocks
  3. when the server has a message available, then release the blocking lock and return

gongzhang avatar Feb 20 '22 01:02 gongzhang