尝试使用单个 Amazon API Gateway 端点接收 HTTP 和 websocket 请求

0

【以下的问题经过翻译处理】 我的理解是,websocket 连接是在 HTTP API 的基础上与升级请求协商建立的。亚马逊 API Gateway websocket 端点是否也能为 HTTP 请求(不需要客户端升级)提供服务?我想使用单一的URL(如 api.foo.com,而不是 ws.foo.com 和 api.foo.com)。

profile picture
EXPERT
demandé il y a 5 mois17 vues
1 réponse
0

【以下的回答经过翻译处理】 将REST(HTTP)API和WebSocket API合并成单个自定义URL是不可能的。同时,使用相同的自定义域名混合两种类型的请求也是不可能的。

profile picture
EXPERT
répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions