refactor(socket) setListeners