Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[技术咨询] WebSocketClient是否支持切换opcode #3536

Closed
liwq4ever opened this issue May 14, 2024 · 4 comments
Closed

[技术咨询] WebSocketClient是否支持切换opcode #3536

liwq4ever opened this issue May 14, 2024 · 4 comments

Comments

@liwq4ever
Copy link

下午好:
首先感谢您开源这么棒的项目。
我这边有个websocket客户端,需要先发送TEXT文本内容,后续使用BINARY发送媒体。想请问下如何使用WebSocketClient在连接中切换opcode呢?

@xiongguangjie
Copy link
Member

WebSocketClient

这个需要二开,ZLM的代码中是模板定义的,一旦声明写死了,就无法切换了

@xia-chu
Copy link
Member

xia-chu commented May 14, 2024

主要是为了无感把TcpClient升级为over websocket, 才这么设计的。

@xia-chu
Copy link
Member

xia-chu commented May 14, 2024

zlm的websocket server和client端都是通过模板 可以升级tcp协议为websocket协议

@liwq4ever
Copy link
Author

好的,感谢您的解答。

@xia-chu xia-chu closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants