Skip to content

WebSocket: the two clean styles — self-describing WebsocketHandler + @Websocket/@OnX#2

Merged
iliyan-velichkov merged 2 commits into
masterfrom
feat/spring-style-websockets
Jun 22, 2026
Merged

WebSocket: the two clean styles — self-describing WebsocketHandler + @Websocket/@OnX#2
iliyan-velichkov merged 2 commits into
masterfrom
feat/spring-style-websockets

Conversation

@iliyan-velichkov

@iliyan-velichkov iliyan-velichkov commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Demonstrates the two Spring-style websocket styles enabled by eclipse-dirigible/dirigible#6051 — one per @Component class, never mixed:

  • Strong interfaceChatHandler is a @Component implementing WebsocketHandler, supplying its own endpoint() (no @Websocket) — like TextWebSocketHandler.
  • AnnotationTickerHandler is a @Websocket(endpoint=…) class with @OnOpen/@OnMessage/@OnClose methods (Jakarta @ServerEndpoint style).

WebsocketStatus (a @Controller) reports whether an endpoint is registered.

Depends on eclipse-dirigible/dirigible#6051; CI fails until it merges. Merge after #6051.

🤖 Generated with Claude Code

iliyan-velichkov and others added 2 commits June 22, 2026 09:47
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…otation style

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@iliyan-velichkov iliyan-velichkov changed the title Add Spring-style websocket examples (interface + @OnX method-level) Websocket: two clean styles — self-describing WebsocketHandler + @OnX annotation Jun 22, 2026
@iliyan-velichkov iliyan-velichkov changed the title Websocket: two clean styles — self-describing WebsocketHandler + @OnX annotation WebSocket: the two clean styles — self-describing WebsocketHandler + @Websocket/@OnX Jun 22, 2026
@iliyan-velichkov iliyan-velichkov self-assigned this Jun 22, 2026
@iliyan-velichkov iliyan-velichkov merged commit 717aed0 into master Jun 22, 2026
@iliyan-velichkov iliyan-velichkov deleted the feat/spring-style-websockets branch June 22, 2026 12:43
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