Skip to content

Clarify an ambiguity in Client Initiated Connections - #290

Open
kepstin wants to merge 1 commit into
Sendspin:mainfrom
kepstin:client-connection
Open

kepstin wants to merge 1 commit into
Sendspin:mainfrom
kepstin:client-connection

Conversation

@kepstin

@kepstin kepstin commented Sep 17, 2026

Copy link
Copy Markdown

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
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.

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