Swoole\Client->send

Notice: the documentation is suitable for PHP extension swoole until v4.7.1, we only support PHP extension openswoole from v4.7.1

Declaration

<?php
Swoole\Client->send($data, $flag = null)

Parameters

data

The data to send.

flag

Flags.

Return

Description

Send data to the remote peer with the connection.

Data can be either string or binary.

Example