mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
updated
This commit is contained in:
1 parent
b08f3bdc52
commit
496b91480b
1 file changed
-13
@@ -110,19 +110,6 @@ class PresenceRealtimeClientTest extends Scope
|
||||
}
|
||||
|
||||
$this->fail('Timed out waiting for expected websocket frame. Last frame: ' . \json_encode($lastMessage));
|
||||
return [];
|
||||
}
|
||||
|
||||
private function drainSocketFor(WebSocketClient $client, int $timeoutMs = 500): void
|
||||
{
|
||||
$deadline = \microtime(true) + ($timeoutMs / 1000);
|
||||
while (\microtime(true) < $deadline) {
|
||||
try {
|
||||
$client->receive();
|
||||
} catch (TimeoutException) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function assertQuietFor(WebSocketClient $client, callable $forbidden, int $timeoutMs = 150): void
|
||||
|
||||
Reference in new issue
Block a user