Skip to content

Commit 4903299

Browse files
fix: store negotiated protocol version in session
1 parent 31a7bb2 commit 4903299

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Dispatcher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ public function handleInitialize(InitializeRequest $request, SessionInterface $s
125125
$protocolVersion = Protocol::LATEST_PROTOCOL_VERSION;
126126
}
127127

128-
$session->set('client_info', $request->clientInfo);
128+
$session->set('client_info', $request->clientInfo->toArray());
129+
$session->set('protocol_version', $protocolVersion);
129130

130131
$serverInfo = $this->configuration->serverInfo;
131132
$capabilities = $this->configuration->capabilities;

0 commit comments

Comments
 (0)