Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help pls #18

Open
doodooaw opened this issue Feb 17, 2022 · 3 comments
Open

help pls #18

doodooaw opened this issue Feb 17, 2022 · 3 comments

Comments

@doodooaw
Copy link

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)

@gongzhang
Copy link
Owner

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?

@CobingDaily
Copy link

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

@gongzhang
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants