Swoole Server sendwait

public boolean Swoole\Server::sendwait ( integer $fd , string $data )

Alias: Swoole\Server->sendwait( integer $fd , string $data )

Send data to the remote socket in the blocking way.

Only available in SWOOLE_BASE mode.

Parameter

  • $fd the id number of client
  • $send_data the data to send

Return

The result of sending data

Example