Skip to content

[FEATURE] 纯前端能否给个websocket对接实现terminal的方案? #4534

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

Open
w7team opened this issue May 10, 2025 · 1 comment
Open
Labels
🎨 feature feature required

Comments

@w7team
Copy link

w7team commented May 10, 2025

我们目前想针对k8s容器做一个统一的文件编辑器,同时想接入终端功能。目前我们已经实现了通过websocket对接容器终端的api+webUI。

问题:纯前端编辑器能否给一个类似的对接方案,可前端通过api对接终端。

@w7team w7team added the 🎨 feature feature required label May 10, 2025
@erha19
Copy link
Member

erha19 commented May 12, 2025

@w7team 目前纯前端没有直接可以对接的终端方案(API 形式),但你可以通过模块拓展机制中的视图注册逻辑自行实现类似终端的效果,相关文档可以参考:
https://github.com/opensumi/opensumi-module-samples/blob/main/modules/custom-view/README.md
https://opensumi.com/zh/docs/integrate/universal-integrate-case/custom-view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 feature feature required
Projects
None yet
Development

No branches or pull requests

2 participants