Websockets with Companion and Serverless on AWS

Can we simply add a resource of “api” to the gateway api to get the websocket working? I think not, the protocols are not defined.

So, if not, then this is what I added to my .yml to to spin up a websocket server

functions:
  companion:
    handler: index.companion

    events:
      - http: ANY /
      - http: 'ANY {proxy+}'
        cors: true
      - websocket: $default

Question is, how do we then use this websocket server? Ticket here:

Hi urthling, did you manage to get this working?