integrating socket with my routes