Skip to content

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

Open

Description

@w7team

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

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

Activity

  1. added
    🎨 feature
    on May 10, 2025
  2. erha19 commented on May 12, 2025

    @erha19
    Member

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🎨 feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions