Trying to use a single Amazon API Gateway endpoint to accept both HTTP and websocket requests

0

My understanding is that a websocket connection is negotiated with an upgrade request on top of an HTTP API. Can an Amazon API Gateway websocket endpoint also serve HTTP requests (which don't require the client to upgrade)? I'm trying to use a single vanity URL (such as api.foo.com instead of ws.foo.com and api.foo.com).

1 Risposta
1
Risposta accettata

It's not possible to combine REST (HTTP) APIs with WebSocket APIs into a single vanity URL. It's also not possible to mix both types of requests using the same custom domain name.

profile pictureAWS
ESPERTO
Uri
con risposta 4 anni fa
profile picture
ESPERTO
verificato 25 giorni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande