Swoole Server sendwait

bool Swoole\Server::sendwait ( int $fd , string $data )

Alias: Swoole\Server->sendwait( int $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