Skip to content

feat(ui): support connect handlers on page dots - #378

Merged
linkdata merged 3 commits into
mainfrom
feat/issue-377-connect-handler
Aug 22, 2026
Merged

feat(ui): support connect handlers on page dots#378
linkdata merged 3 commits into
mainfrom
feat/issue-377-connect-handler

Conversation

@linkdata

Copy link
Copy Markdown
Owner

Summary

  • add jaws.ConnectHandler as a page-dot adapter to the existing Request ConnectFn lifecycle
  • install only the direct ui.Handler dot callback before page template execution, preserving nested-template and arbitrary-dot behavior
  • document the lifecycle in godoc, package guides, and the JAWS skill, with a compile-checked synchronized example
  • cover the eight requested lifecycle, ordering, error, nesting, and concurrency cases with real HTTP/WebSocket tests

Compatibility

A top-level ui.Handler dot that already defines the exact method JawsConnect(*jaws.Request) error will now receive connection callbacks. Nested template dots are not discovered.

Validation

  • go generate ./...
  • go vet ./...
  • gofmt -l .
  • staticcheck ./... (CI-pinned revision)
  • golangci-lint run (v2.13.1)
  • gosec ./...
  • go build ./...
  • JAWS_REQUIRE_NODE=1 go test -race ./...
  • JAWS_REQUIRE_NODE=1 go test ./...

Closes #377

@linkdata
linkdata merged commit df61bed into main Aug 22, 2026
7 checks passed
@linkdata
linkdata deleted the feat/issue-377-connect-handler branch August 22, 2026 15:26
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.

Let ui.Handler page dots provide connect lifecycle behavior

1 participant