Send document identifier when emitting `doc`

Fixes issue when a client is editing multiple documents. The `doc` command had no awareness of which doc it had successfully connected to.