Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 390 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 390 Bytes

wilon-server

Mock swoole server(tcp/udp) style for programming.

Example

$server = new Wilon\Server('0.0.0.0', 8080);

// configuration
$server->set(['worker_num' => 4]);

// events
$server->on('WorkerStart', function(){});
$server->on('connect', function(){});
$server->on('close', function(){});
$server->on('receive', function(){});

// start server
$server->start();