diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-03-29 00:37:12 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-03-29 00:37:12 +0100 |
commit | b0c712c146b208ac9dad5fd5829a2bc38773a4de (patch) | |
tree | f5446f2e46eac0a62d797c5113386998356a6ac8 /README | |
parent | b400ea8d09b516b40b767d9477634bab470d95ec (diff) | |
download | json-rpc-shell-b0c712c146b208ac9dad5fd5829a2bc38773a4de.tar.gz json-rpc-shell-b0c712c146b208ac9dad5fd5829a2bc38773a4de.tar.xz json-rpc-shell-b0c712c146b208ac9dad5fd5829a2bc38773a4de.zip |
Stubplement WebSockets
Diffstat (limited to 'README')
-rw-r--r-- | README | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -6,17 +6,29 @@ json-rpc-shell This software has been created as a replacement for the following shell, which is written in Java: http://software.dzhuvinov.com/json-rpc-2.0-shell.html -Fuck Java. With a sharp, pointy object. In the ass. Hard. json-c as well. - Supported transports -------------------- - HTTP - HTTPS + - WebSocket + - WebSocket over TLS + +WebSockets +---------- +The WebSocket transport is rather experimental. As the JSON-RPC 2.0 spec +doesn't say almost anything about the underlying transports, I'll shortly +describe the way it's implemented: every request is sent as a single text +message. If it has an "id" field, i.e. it's not just a notification, the +client waits for a message from the server in response. + +There's no support so far for any protocol extensions, nor for specifying +the higher-level protocol (the "Sec-Ws-Protocol" HTTP field). Building and Running -------------------- -Build dependencies: CMake, pkg-config, help2man, liberty (included) -Runtime dependencies: libev, Jansson, cURL, readline +Build dependencies: CMake, pkg-config, help2man, + liberty (included), http-parser (included) +Runtime dependencies: libev, Jansson, cURL, readline, openssl $ git clone https://github.com/pjanouch/json-rpc-shell.git $ git submodule init |