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.
Hyperf\WebSocketServer\Sender::getResponses()
1 parent 9d51cee commit e48b497Copy full SHA for e48b497
src/Sender.php
@@ -97,6 +97,9 @@ public function check($fd): bool
97
}
98
99
/**
100
+ * The responses of coroutine style swoole server.
101
+ * Or connections of swow server.
102
+ * And so on.
103
* @param null|Connection|Response $response
104
*/
105
public function setResponse(int $fd, mixed $response): void
@@ -113,6 +116,11 @@ public function getResponse(int $fd): mixed
113
116
return $this->responses[$fd] ?? null;
114
117
115
118
119
+ public function getResponses(): array
120
+ {
121
+ return $this->responses;
122
+ }
123
+
124
public function getFdAndMethodFromProxyMethod(string $method, array $arguments): array
125
{
126
if (! in_array($method, ['push', 'disconnect'])) {
0 commit comments