docs: update subscribe example to make it work