summaryrefslogtreecommitdiff
path: root/json-rpc-shell.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-03-29 03:22:27 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-03-29 03:22:27 +0200
commitbdbfb915d21ca49259b76a515b4ea12fe8bbe9e4 (patch)
tree42bbfd837cf73fabaf7cd75add6a34ba22d4ba58 /json-rpc-shell.c
parent64381f8d46af9bf5f5114a0993e72b50936a0141 (diff)
downloadjson-rpc-shell-bdbfb915d21ca49259b76a515b4ea12fe8bbe9e4.tar.gz
json-rpc-shell-bdbfb915d21ca49259b76a515b4ea12fe8bbe9e4.tar.xz
json-rpc-shell-bdbfb915d21ca49259b76a515b4ea12fe8bbe9e4.zip
Display a warning about WS status
So I can finally push this to GitHub.
Diffstat (limited to 'json-rpc-shell.c')
-rw-r--r--json-rpc-shell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index a6d319c..596db73 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -1834,7 +1834,11 @@ main (int argc, char *argv[])
g_ctx.backend = &g_backend_curl;
else if (!strcasecmp_ascii (url_schema, "ws")
|| !strcasecmp_ascii (url_schema, "wss"))
+ {
+ print_warning ("WebSocket support is experimental"
+ " and most likely completely broken");
g_ctx.backend = &g_backend_ws;
+ }
else
exit_fatal ("unsupported protocol");