Add initial README
4 years ago
Signed by untrusted user:
GPG Key ID:
1 changed files
Download Patch File
Download Diff File
@ -0,0 +1,57 @@
img alt="pipeline status" src="https://gitlab.petton.fr/nico/json-process-client/badges/master/pipeline.svg" /
The package json-process-client is an Emacs library to facilitate
communicating with servers that read and write JSON. The library is
responsible for starting the server and connecting with TCP. It is
also responsible for converting to and from JSON.
The library was written by [[
]] in the context of [[
later generalized by [[
]] who needed something similar to
basecamp within Emacs
Get json-process-client from [[
]] or [[
]]. You can also clone
the git repository.
There are two entry points to the API:
. They both launch an executable
passed as parameter wait for it to be ready, and connect to it using
TCP. They both return an "application" that must be passed as
parameter to all other functions of the API.
Because everything is asynchronous, the server can send responses in a
different order than the messages the client sent. The server can also
send messages which are not responses to a former message. There must
be a way to map responses to the initial message when there was
one. The two functions
differs in the way they map
responses to their corresponding message. The later function is the
simplest but requires that the server reads ids from the messages and
writes the ids back in its responses. The former function let the API
user implement the mapping.
There are three other public methods in the API:
terminates the TCP connection and the
returns non-nil if the server
is still listening.
sends a message to the server and
executes a given callback upon reception.
]]. Copyright (c) 2019 Nicolas Petton and Damien Cassou.