Skip to content

Clarify an ambiguity in Client Initiated Connections - #290

Merged
maximmaxim345 merged 2 commits into
Sendspin:mainfrom
kepstin:client-connection
Oct 8, 2026
Merged

maximmaxim345 merged 2 commits into
Sendspin:mainfrom
kepstin:client-connection

Conversation

@kepstin

@kepstin kepstin commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

From the wording of the spec, it's unclear whether the intention was that mDNS was the only method that clients could use to discover a server, or if they were permitted to connect to servers that they had discovered in some other way (e.g. a manually entered ws:// url).

I think that permitting other methods of discovering the server is fine in some circumstances, so I've added the BCP-14 keyword SHOULD to the statement to make that clear.

If the intent was that mDNS is the only method that clients are permitted to use to discover the server, then I'd recommend using the MUST keyword instead.

From the wording of the spec, it's unclear whether the intention was that mDNS was the only method that clients could use to discover a server, or if they were permitted to connect to servers that they had discovered in some other way (e.g. a manually entered `ws://` url).

I think that permitting other methods of discovering the server is fine, so I've added the BCP-14 keyword "SHOULD" to the statement to make that clear; see https://www.rfc-editor.org/info/rfc2119/#section-3 for the exact meaning of this keyword.
@kepstin

kepstin commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

As an additional note, Javascript running in web browsers is unable to either accept incoming connections or perform mDNS service discovery, so all connections made by JS sendspin clients will be client-initiated connections to a websocket URL provided via an out-of-band mechanism.

@maximmaxim345 maximmaxim345 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @kepstin, good catch!

Only pushed a small fix on top so the SHOULD doesn't also cover using the advertised address and path.

@maximmaxim345
maximmaxim345 merged commit 04a5bbe into Sendspin:main Oct 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants