Trafeik Socket io issues when 2 sites with socket are scaled

I am running into issues of socket not working when I have 2 different sites running on trafeik with socket io enabled and scaled. One is taking and one is production. Can someone please help with this?

Staging

      - "traefik.http.services.app-dev.loadbalancer.sticky.cookie=true"
      - "traefik.http.services.app-dev.loadbalancer.sticky.cookie.name=server_id"
      - "traefik.http.services.app-dev.loadbalancer.sticky.cookie.secure=true"
      - "traefik.http.services.app-dev.loadbalancer.sticky.cookie.httpOnly=true"
      - "traefik.http.services.app-dev.loadbalancer.sticky.cookie.sameSite=none"

Production

      - "traefik.http.services.app.loadbalancer.sticky.cookie=true"
      - "traefik.http.services.app.loadbalancer.sticky.cookie.name=server_id"
      - "traefik.http.services.app.loadbalancer.sticky.cookie.secure=true"
      - "traefik.http.services.app.loadbalancer.sticky.cookie.httpOnly=true"

It was looking as socket io was mixing both of these somehow.