Skip to content

[Web runtime] Add WebSocket and HTTP/SSE action demos - #1614

Merged
minggangw merged 10 commits into
RobotWebTools:developfrom
minggangw:add-sse-action-example
Oct 9, 2026
Merged

minggangw merged 10 commits into
RobotWebTools:developfrom
minggangw:add-sse-action-example

Conversation

@minggangw

@minggangw minggangw commented Sep 20, 2026 •

Copy link
Copy Markdown
Member
  • Add Fibonacci action demos with feedback, results, WS cancellation and HTTP stream detachment.
  • Handle transport switching, page cleanup and restoration without stale updates.
  • Improve responsive layouts, configurable ports and demo setup instructions.
  • Clarify ROS-role/transport support, action lifecycle and SDK limitations in public docs.

Fix: #1579

Copilot AI lite review requested due to automatic review settings September 20, 2026 07:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The documented walkthrough references a missing http-action-client-example.mjs file, so the advertised client step cannot run.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds HTTP/SSE action documentation and Fibonacci browser demos for JavaScript and TypeScript.

Changes:

  • Documents action APIs, SSE, cancellation, and OpenAPI support.
  • Adds Fibonacci action servers and browser controls.
  • Updates demo configuration, styling, and README guidance.
File Summary
web/​README.md Documents browser actions and HTTP/SSE usage
scripts/​npmjs-readme.md Updates package README action guidance
README.md Updates the web SDK overview
example/​actions/​README.md Adds an HTTP/SSE action walkthrough
demo/​web/​typescript/​web.json Exposes the Fibonacci action and CORS
demo/​web/​typescript/​src/​style.css Adds responsive action styling
demo/​web/​typescript/​src/​main.ts Implements typed action controls
demo/​web/​typescript/​server.ts Adds the TypeScript Fibonacci action server
demo/​web/​typescript/​README.md Documents the TypeScript action demo
demo/​web/​typescript/​index.html Adds the Fibonacci action panel
demo/​web/​javascript/​web.json Exposes the Fibonacci action
demo/​web/​javascript/​runtime.mjs Adds the JavaScript Fibonacci action server
demo/​web/​javascript/​README.md Documents the JavaScript action demo
demo/​web/​javascript/​index.html Adds the JavaScript action panel and controls

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread example/actions/README.md Outdated
@coveralls

coveralls commented Sep 20, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 91.155%. remained the same — minggangw:add-sse-action-example into RobotWebTools:develop

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The walkthrough references a missing client file, and both browser demos remain disconnected after a back-forward-cache restore.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 3 Medium severity

Open (3)

Comment thread demo/web/javascript/index.html Outdated
Comment thread demo/web/typescript/src/main.ts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The TypeScript demo passes null to a parameter that only accepts a callback or undefined, causing strict type-checking to fail.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 High severity · 3 Medium severity

Open (4)

Comment thread demo/web/typescript/server.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Cross-transport action cancellation, streaming, and browser lifecycle behavior warrant final human validation.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (3)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Subscription lifecycle races remain unresolved, and cached-page restoration and native action shutdown need human integration validation.

1 open finding
1 resolved since last review

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

chatterSub = null;
ros = null;
updateActionControls();
await detachAction();
@minggangw
minggangw force-pushed the add-sse-action-example branch from d5bce2c to ea83316 Compare October 9, 2026 01:46
@minggangw minggangw changed the title Add HTTP/SSE action examples and browser demos [Web runtime] Add WebSocket and HTTP/SSE action demos Oct 9, 2026
@minggangw
minggangw merged commit c7e70cd into RobotWebTools:develop Oct 9, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add action capability dispatch

3 participants