Skip to content

Commit d5dc143

Browse files
fix(server): use correct session ID string conversion method
1 parent 83504fd commit d5dc143

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Server/ClientGateway.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function notify(Notification $notification): void
6666
\Fiber::suspend([
6767
'type' => 'notification',
6868
'notification' => $notification,
69-
'session_id' => $this->session->getId()->toString(),
69+
'session_id' => $this->session->getId()->toRfc4122(),
7070
]);
7171
}
7272

@@ -112,7 +112,7 @@ public function request(Request $request, int $timeout = 120): Response|Error
112112
$response = \Fiber::suspend([
113113
'type' => 'request',
114114
'request' => $request,
115-
'session_id' => $this->session->getId()->toString(),
115+
'session_id' => $this->session->getId()->toRfc4122(),
116116
'timeout' => $timeout,
117117
]);
118118

src/Server/Protocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ private function resolveSession(?Uuid $sessionId, array $messages): ?SessionInte
543543

544544
$session = $this->sessionFactory->create($this->sessionStore);
545545
$this->logger->debug('Created new session for initialize', [
546-
'session_id' => $session->getId()->toString(),
546+
'session_id' => $session->getId()->toRfc4122(),
547547
]);
548548

549549
$this->transport->setSessionId($session->getId());

0 commit comments

Comments
 (0)