From ee79249d23244bef4f18f542f28c465f9f50c77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sat, 10 Oct 2020 05:20:31 +0200 Subject: [PATCH] json-rpc-shell.adoc: update WebSocket notes https://github.com/open-rpc/client-js also uses WebSockets, although they don't seem to support notifications (in general). --- json-rpc-shell.adoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/json-rpc-shell.adoc b/json-rpc-shell.adoc index e5db693..e8525ad 100644 --- a/json-rpc-shell.adoc +++ b/json-rpc-shell.adoc @@ -113,8 +113,7 @@ newlines. WebSockets ~~~~~~~~~~ The JSON-RPC 2.0 specification doesn't say almost anything about underlying -transports. As far as the author is aware, he is the only person combining it -with WebSockets. The way it's implemented here is that every request is sent as +transports. The way it's implemented here is that 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. Should any message arrive unexpectedly, you will receive a warning.