We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 663877e commit 24dccfdCopy full SHA for 24dccfd
src/React/Decoder.php
@@ -2,6 +2,7 @@
2
3
namespace EdgeTelemetrics\JSON_RPC\React;
4
5
+use EdgeTelemetrics\JSON_RPC\RpcMessageInterface;
6
use Evenement\EventEmitter;
7
use React\Stream\ReadableStreamInterface;
8
use React\Stream\WritableStreamInterface;
@@ -108,7 +109,7 @@ public function handleData($input)
108
109
throw new RuntimeException('Unable to decode. Missing required jsonrpc field');
110
}
111
- if ($data['jsonrpc'] != Notification::JSONRPC_VERSION) {
112
+ if ($data['jsonrpc'] != RpcMessageInterface::JSONRPC_VERSION) {
113
throw new RuntimeException('Unknown JSON-RPC version string');
114
115
0 commit comments