Swoole Server send

bool Swoole\Server::send ( int $fd , string $data [, int $reactor_id ] )

Alias: swoole_server->send( int $fd , string $data [, int $reactor_id ] )

Send data to the remote TCP socket.


  • $fd the id number of client
  • $data the function that triggered after with a fixed time delay
  • $extraData the extra data of sending data


the result of send data to the client

If the result is false, you can call the method $server->getLastError() to get the error code.