feat: init document when first client connects