【问题标题】:Google Cloud Functions with socket.io [closed]带有 socket.io 的 Google Cloud Functions [关闭]
【发布时间】:2019-10-21 22:03:24
【问题描述】:

我的理解是,要使用 socket.io 建立持久的套接字连接,Node.js 服务器应该始终运行。使用 Google Cloud Functions 并没有始终运行的 Node.js 服务器,因此无法保持套接字连接处于活动状态。

带有运行中的 Node.js 服务器的 Cloud Run 是使用 socket.io 处理多个套接字连接的最佳选择吗?

【问题讨论】:

    标签: node.js socket.io google-cloud-functions google-cloud-run


    【解决方案1】:

    更新:从 2021 年 1 月起,GCP Cloud Run 支持 WebSockets。

    Here is the link to the Cloud Run documentation

    Here is the link to the blog post (their announcement)

    【讨论】:

      猜你喜欢
      • 2017-11-29
      • 1970-01-01
      • 2020-07-19
      • 2021-04-27
      • 2017-09-02
      • 1970-01-01
      • 2020-11-03
      • 2020-09-17
      • 1970-01-01
      相关资源
      最近更新 更多