php8.5
Home/ Manual/ websocket / server/ Swoole\WebSocket\Server::push

Swoole\WebSocket\Server::push

PHP function Edit on GitHub ✎

(PECL swoole >= 1.9.0)

Push data to the remote client.

Description

Swoole\WebSocket\Server::push(string $fd, string $data, [string $opcode], [string $finish]): void

Parameters

fd
data
opcode
finish

Return Values

Source: reference/swoole/swoole/websocket/server/push.xml · from the official PHP manual (php/doc-en)