wesocket Failed when connecting: Connection closed (code: 1006)

Hello, when I use Websocket to use Traefik for proxy forwarding, the error code is 1006. It is normal if I do not go through Traefik, I would like to ask what I should do if I want to use Traefik to access my service normally