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).
This commit is contained in:
Přemysl Eric Janouch 2020-10-10 05:20:31 +02:00
parent 160d23018a
commit ee79249d23
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 2 deletions

View File

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