-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protocol specifiers are ambiguous? #55
Comments
(Yes, I know this has been open for quite some time, but since nobody responded…) I think you were being misled here: Regarding the second example (/wss/example.com/http/example.com): First of all this doesn't mean what you probably intended it to mean, since that literally says establish a secure websocket connection somewhere using the HTTP/WS host field @Stebalien: Do you think this answers the above questions decently? |
If you use Unix file paths and delimiters, it seems like it would be really easy to make things ambiguous.
First off, I don't see a "file" protocol type, is this the the
unix
protocol type listed in protocols.csv?If so, what happens if I make a file path
/home/icefox/tcp/127.0.0.1/foo
and try to represent it as a multiaddr path?Okay, that's a little artificial, and you could specify that you can disambiguate from context; a
unix
protocol address cannot contain atcp
protocol subaddress. Though that seems to defeat the purpose; things stop being self-describing and become context-dependent. (And on Plan9 you certainly can do TCP via the filesystem.)Okay, what about a more concrete example using already defined protocols:
Is this accessing the websockets endpoint
wss://example.com/http/example.com
, or is it trying to nest the HTTP protocol inside the websockets endpointwss://example.com/
?The text was updated successfully, but these errors were encountered: