On Sat, 1 Oct 2022, Hairy Pixels via fpc-pascal wrote:

Quick question, I’ve been using the JSON RPC package to receive messages
from the client and dispatch methods but I need to send a request from the
server to the client now.  Is this possible in the library?  I can’t find
a method in TCustomJSONRPCDispatcher which seems appropriate.  Thanks!

There is no way to send data from server to client, only responses to client
requests.

What's more, HTTP 1 and 1.1 simplu do not allow this.
You'd need HTTP2 and/or websockets in order to send data from server to client.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to