Frst revision chat server
comment out unused code and keep as reference, delete random lines
delete unused lines
Revert "delete unused lines"

This reverts commit 8cbcfd01a6c18d98bc666c0947411629e0b1e0b1.
merge chat changes