Pulling io.sockets into a variable.
Pull chat updating into a helper method.
Pulling out adding user logic into a helper method.