Skip to content

Commit f83b952

Browse files
committed
fix isServerWebsocket function in InteractsWithWebsocket
1 parent b7f4d36 commit f83b952

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Concerns/InteractsWithWebsocket.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,11 @@ protected function prepareWebsocket()
236236
*/
237237
protected function isServerWebsocket(int $fd): bool
238238
{
239-
return (bool) $this->container->make(Server::class)
240-
->connection_info($fd)['websocket_status'] ?? false;
239+
return array_key_exists(
240+
'websocket_status',
241+
$this->container->make(Server::class)
242+
->connection_info($fd)
243+
);
241244
}
242245

243246
/**

0 commit comments

Comments
 (0)