on('data', fn() => print('m')); $stream->on('error', fn() => print('e')); $stream->on('close', fn() => print('c')); $loop->addPeriodicTimer(0.2, fn() => print('.')); $loop->run();