createClient($address, 4); $socket->write('login ' . $loginCode); $bool = true; while (true) { // @phpstan-ignore-line $socket->read(10241024); $socket->write($bool ? 'left' : 'right'); $bool = !$bool; }