Skip to content

docs: use the secure WebSocket echo endpoint in client examples - #2099

Open
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:docs/secure-websocket-echo-example-endpoint
Open

He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:docs/secure-websocket-echo-example-endpoint

Conversation

@He-Pin

@He-Pin He-Pin commented Dec 6, 2026

Copy link
Copy Markdown
Member

Motivation

The public echo server advertises its secure WebSocket endpoint. The plaintext URL used in the examples did not return Switching Protocols.

Modification

Use the advertised wss URI in the existing Java and Scala client examples and the Java manual echo application. Leave the protocol and example control flow unchanged.

Result

All four changed example sources compile against the current Pekko HTTP core on JDK 17 and Scala 2.13.18. The affected documentation references resolve, and formatter checks passed. An external TLS echo was not verified from the build environment.

References

Public echo endpoint and RFC 6455 §4.1.

Motivation: The public echo server advertises its secure WebSocket endpoint. The plaintext URL used in the examples did not return Switching Protocols.

Modification: Use the advertised wss URI in the existing Java and Scala client examples and the Java manual echo application. Leave the protocol and example control flow unchanged.

Result: All four changed example files compile on JDK 17 and Scala 2.13.18 with Pekko HTTP 2.0.0. The affected documentation references and formatter checks pass. The external TLS echo was not verified from the build environment.

References: WebSocket.org echo endpoint and RFC 6455 section 4.1.
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.

1 participant