Changed to endpoint selection #48
base: master
Are you sure you want to change the base?
Conversation
303a9e8
to
c3621a5
Compare
@lgierth how are we doing with supporting dictionary values (key/value) in multiaddrs, and with delimited values? (necessary for this issue) |
What is endpoint selection? |
Just guessing, but is it about binding multiple libp2p nodes to the same port? That'd sound like it could already be achieved with the existing |
Oh, I see, the TLS ServerName part. #46 (comment) |
@lgierth yes, I was thinking of maybe creating a list of '"global" variable for each multiaddr, they could be domain, port, synced, ip, ...
Also, synced conn can be seemlessly transformed to conn but invert isn't possible.
And for these both ma, libp2p will use the same tcp connection for regular tcp and wss by injecting mplex via an multiplexer interface (here that point less because browser will not understand and will probably not support mplex). So how could it looks like in the code :
|
34d16ce
to
6b40a08
Compare
Now you can use ws/endpoint to choose your end point.
6b40a08
to
f127f8c
Compare
Now you can use ws/endpoint to choose your end point.
So a regular address looks like that :
This pr is for #46 because nobody want to use the root of his website for connection.
With this you can put it under /ipfs if you want.
Since this is a non retrocompatible modification, I'm making the same change on the javascript ws transport.
Notes :
the listener doesn't care about wich url you used, he treat your connection and just set the path you choosed.
To Do :