Skip to content

Commit 18abfc5

Browse files
authored
Added method Sender::getResponse() which you can used to get response from coroutine style server. (#3472)
1 parent 144bbe2 commit 18abfc5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Sender.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ public function setResponse(int $fd, ?Response $response): void
118118
}
119119
}
120120

121+
public function getResponse(int $fd): ?Response
122+
{
123+
return $this->responses[$fd] ?? null;
124+
}
125+
121126
public function getFdAndMethodFromProxyMethod(string $method, array $arguments): array
122127
{
123128
if (! in_array($method, ['push', 'disconnect'])) {

0 commit comments

Comments
 (0)