mirror of
https://git.kore.io/kore.git
synced 2024-11-06 02:21:58 +01:00
db02e990ea
The API surface is very limited. Jsonrpc support reads request from HTTP body and such can't be activated if NOHTTP=1. At the moment there is no websocket support either (which is a shame). It depends upon the third-party Yajl library. Errors can be emitted using jsonrpc_error() and results using jsonrpc_result(), for the later you'll have to provide a callback which will write the inner of the result object. If errors happen during the response write process, no further error output will be attempted and an HTTP error 500 will be returned. Read the provided example for getting a better idea of the API. |
||
---|---|---|
.. | ||
build.conf | ||
jsonrpc.conf |