go-kratos / gateway

A high-performance API Gateway with middlewares, supporting HTTP and gRPC protocols.
MIT License
696 stars 141 forks source link

可以支持websocket转发吗 #216

Closed lj-1998 closed 7 months ago

dosubot[bot] commented 11 months ago

🤖

你好,@lj-1998!我是Dosu,一个专门用来帮助解决bug、回答问题以及帮助你更好地参与贡献的机器人。在等待人类维护者的同时,我在这里为你提供帮助。期待与你的互动!

根据我在gateway仓库中的查找,目前并没有找到支持WebSocket协议的相关信息。在我查看的问题、提交、合并请求中,都没有提到WebSocket协议。此外,我还查看了go.mod文件中列出的依赖项,这些依赖项主要用于HTTP、gRPC和其他功能,但没有专门设计来处理WebSocket连接的依赖项。

如果您有更多关于此问题的信息,例如是否有特定的提交或问题提到了WebSocket,或者是否有特定的依赖项可能支持WebSocket,那么请提供更多的信息,这将有助于我更准确地回答您的问题。

Sources

kvii commented 10 months ago

同求 gateway 支持 websocket。httputil 的 reverse proxy 能支持 websocket 协议,不清楚 kratos gateway 能不能适配。 我写了个 reverse proxy 示例工程

dosubot[bot] commented 7 months ago

Hi, @lj-1998

I'm helping the gateway team manage their backlog and am marking this issue as stale. From what I understand, you requested support for WebSocket forwarding in the repository. There have been some discussions and I offered assistance in Chinese, while kvii suggested that the gateway should support WebSocket and provided an example of a reverse proxy. However, the issue is still unresolved and awaiting further input.

Could you please confirm if this issue is still relevant to the latest version of the gateway repository? If it is, please let the gateway team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you!