Docuemnt emit and emitDirect