[fpc-pascal] JSON RPC send server request to client

Michael Van Canneyt michael at freepascal.org
Sun Oct 2 04:16:03 CEST 2022



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.


More information about the fpc-pascal mailing list