Skip to content

Iris/Eyre: websockets style and logic fixes#25

Merged
polwex merged 7 commits into
gw/websocketsfrom
gw/websockets-tinnus
Mar 11, 2026
Merged

Iris/Eyre: websockets style and logic fixes#25
polwex merged 7 commits into
gw/websocketsfrom
gw/websockets-tinnus

Conversation

@tinnus-napbus
Copy link
Copy Markdown
Collaborator

This primarily fixes style issues in Iris/Eyre for the Websockets PR.

Additionally, it restructures the scry in Iris so it doesn't skip security checks, and restructures the scry paths to be /ws/[app]/url/[url], etc, so that the desk in the beak is %$ in line with Eyre style, and so it doesn't depend on provenance which only works when requests come from agents.

It also fixes the URL parsing logic to use proper en-purl:html functions producing a (list @t) rather than a simple path parser that will get broken by query parameters and non-@ta characters in URL path elements. Note this means it pokes the handler app with a (list @t) rather than path for the URL, so the nostr agent will have to be changed to accommodate that. Without this change though, URL parsing will be unacceptably fragile.

Copy link
Copy Markdown
Contributor

@polwex polwex left a comment

Choose a reason for hiding this comment

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

LGTM, thank you, good catch on the path parsing.

@polwex polwex merged commit 81229a0 into gw/websockets Mar 11, 2026
1 check failed
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.

3 participants