Stubplement WebSockets

This commit is contained in:
2015-03-29 00:37:12 +01:00
parent b400ea8d09
commit b0c712c146
5 changed files with 1811 additions and 122 deletions

20
README
View File

@@ -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