github.com/projectcontour/contour@v1.28.2/site/content/docs/1.25/config/websockets.md (about)

     1  # Websockets
     2  
     3  WebSocket support can be enabled on specific routes using the `enableWebsockets` field:
     4  
     5  ```yaml
     6  # httpproxy-websockets.yaml
     7  apiVersion: projectcontour.io/v1
     8  kind: HTTPProxy
     9  metadata:
    10    name: chat
    11    namespace: default
    12  spec:
    13    virtualhost:
    14      fqdn: chat.example.com
    15    routes:
    16    - services:
    17      - name: chat-app
    18        port: 80
    19    - conditions:
    20      - prefix: /websocket
    21      enableWebsockets: true # Setting this to true enables websocket for all paths that match /websocket
    22      services:
    23      - name: chat-app
    24        port: 80
    25  ```