libshv-js 3.6.3 → 3.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ws-client.ts +2 -3
package/package.json
CHANGED
package/src/ws-client.ts
CHANGED
|
@@ -104,8 +104,6 @@ class RpcError extends Error {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
class ProtocolError extends Error {}
|
|
108
|
-
|
|
109
107
|
class InvalidRequest extends RpcError {}
|
|
110
108
|
class MethodNotFound extends RpcError {}
|
|
111
109
|
class InvalidParams extends RpcError {}
|
|
@@ -195,7 +193,8 @@ class WsClient {
|
|
|
195
193
|
return rpcMsg.value[RPC_MESSAGE_RESULT];
|
|
196
194
|
}
|
|
197
195
|
|
|
198
|
-
|
|
196
|
+
// If both result and error are missing, the result is implicitly Null.
|
|
197
|
+
// https://silicon-heaven.github.io/shv-doc/rpcmessage.html#response
|
|
199
198
|
})());
|
|
200
199
|
// eslint-disable-next-line @typescript-eslint/no-array-delete
|
|
201
200
|
delete this.rpcHandlers[Number(requestId)];
|