Swoole\Client->send

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