emit userlist from io, only register disconnect if client is defined