add user online and offline socket, not working properly