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:
parent
160d23018a
commit
ee79249d23
@ -113,8 +113,7 @@ newlines.
|
|||||||
WebSockets
|
WebSockets
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
The JSON-RPC 2.0 specification doesn't say almost anything about underlying
|
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
|
transports. The way it's implemented here is that every request is sent as
|
||||||
with WebSockets. 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 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.
|
a notification, the client waits for a message from the server in response.
|
||||||
Should any message arrive unexpectedly, you will receive a warning.
|
Should any message arrive unexpectedly, you will receive a warning.
|
||||||
|
Loading…
Reference in New Issue
Block a user