英文:
Does anyone know of a Go Lang websocket client that is compatible with Google App Engine?
问题
我想从使用websockets的服务器将数据流式传输到后端,也就是说,我希望后端的行为像一个websocket客户端。
我尝试了websocket包,但它使用了一堆App Engine非白名单函数。
英文:
I want to stream data to a backend from a server that uses websockets i.e. I would like the backend to behave like a websocket client.
I tried the websocket package but that uses a whole load of App Engine non-whitelisted functions.
答案1
得分: 2
AppEngine目前不支持WebSockets。最接近的替代方案是Channel API,但它仍然比WebSockets功能有限。
编辑:新的实验性Sockets API比Channel API更接近,但仍然不允许监听套接字,这是实现WebSockets的核心要求。
英文:
AppEngine does not currently support WebSockets. The closest equivalent is the Channel API, but that is still more limited than WebSockets.
Edit: The new experimental Sockets API is even closer than the Channel API, but still doesn't allow listening sockets, which is a core requirement to implement WebSockets.
答案2
得分: 1
新的基于虚拟机的后端非常适合这种场景。它们允许您在Compute Engine虚拟机上运行非白名单代码,作为您的App Engine应用程序的一部分。该程序目前处于早期访问阶段,有关注册的信息,请参阅此帖子:https://groups.google.com/d/msg/google-appengine/gRZNqlQPKys/BbOHxcgYt2IJ
英文:
The new VM-Based backends are a good fit for this kind of scenario. They allow you to run non-whitelisted code on Compute Engine virtual machines as part of your App Engine application. The program is currently in Early Access, see this post for information on signing up: https://groups.google.com/d/msg/google-appengine/gRZNqlQPKys/BbOHxcgYt2IJ
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论