Skip to content

How do servers make requests to clients? #110

Answered by jspahrsummers
kyleconroy asked this question in Q&A
Discussion options

You must be logged in to vote

When trying to to implement logging, sampling, etc. the specification mentions the server making requests to the client. How is this process supposed to work? Do servers write requests back to the client? In this case the messages coming in via stdin could also be responses from the client?

Yes, this is correct. Messages arriving on stdin will be JSON-RPC requests, notifications, or responses. The server, in turn, sends its messages to the client over stdout. Since both directions can contain requests and responses, the communication is bidirectional.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jspahrsummers
Comment options

You must be logged in to vote
4 replies
@jspahrsummers
Comment options

@ppipada
Comment options

@jspahrsummers
Comment options

@ppipada
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants