fix socket leave event
fix user#disconnect() debug message

added user#toDoc()