EventLoop::repeat($pingInterval,
function(...$args)use($client){$client->ping(...$args)});

Reply via email to