Skip to content

[webchannel] Add interactive TS web demo#72

Merged
sampajano merged 6 commits into
google:mainfrom
sampajano:webchannel-js-demo
Jun 23, 2026
Merged

[webchannel] Add interactive TS web demo#72
sampajano merged 6 commits into
google:mainfrom
sampajano:webchannel-js-demo

Conversation

@sampajano

Copy link
Copy Markdown
Collaborator

Summary

This PR adds a simple, interactive TypeScript Web Demo for the compiled WebChannel client bundle.

It provides an E2E playground allowing developers to test connectivity against the live Google sandbox endpoints (/staging/channel/generator and /staging/channel/echo).

Key Features Supported:

  • Endpoint Dropdown Selector: Easily switch between Generator Server (for streaming push verification) and Echo Server (for interactive latency measurement).
  • Option Toggles: Configure key properties (sendRawJson, detectBufferingProxy, forceLongPolling, fastHandshake) during connection handshake.
  • UX Controls: Fades out buttons based on connection status, keeps input editable, and includes a Clear Logs option.

WebChannel TS Web Demo Screenshot

Note

We will revert the compiled WebChannel JS bundle (webchannel_blob) soon, once the core webchannel library is migrated to TypeScript.

@sampajano sampajano requested a review from wenbozhu June 23, 2026 20:28

@wenbozhu wenbozhu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@sampajano sampajano marked this pull request as ready for review June 23, 2026 22:25
@sampajano sampajano merged commit 018a125 into google:main Jun 23, 2026
7 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.

2 participants