You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled across a possible interoperability problem with js-libp2p.
While playing around with a browser instance of js-libp2p, I tried to ping my jvm-libp2p instance over WS transport.
The JS version uses the multiaddress including the p2p protocol prefix and the peer id to call other peers.
This is not the case for the JVM version.
Since I see no possibility to set the peer id of the node in the host builder, I used the following multiaddress for listening on the JVM side:
/ip4/127.0.0.1/tcp/PORT/ws/
Where PORT is my port.
It seems like the WebSocket is opened at ws://127.0.0.1:PORT/
The call ws://127.0.0.1:PORT/p2p/PEER_ID leads to nowhere.
The JS version calls the URL above if the following multiaddress is given:
/ip4/127.0.0.1/tcp/PORT/ws/ipfs/PEER_ID
Am I doing something wrong or is there a fix for this problem?
The text was updated successfully, but these errors were encountered:
I stumbled across a possible interoperability problem with js-libp2p.
While playing around with a browser instance of js-libp2p, I tried to ping my jvm-libp2p instance over WS transport.
The JS version uses the multiaddress including the p2p protocol prefix and the peer id to call other peers.
This is not the case for the JVM version.
Since I see no possibility to set the peer id of the node in the host builder, I used the following multiaddress for listening on the JVM side:
/ip4/127.0.0.1/tcp/PORT/ws/
Where PORT is my port.
It seems like the WebSocket is opened at ws://127.0.0.1:PORT/
The call ws://127.0.0.1:PORT/p2p/PEER_ID leads to nowhere.
The JS version calls the URL above if the following multiaddress is given:
/ip4/127.0.0.1/tcp/PORT/ws/ipfs/PEER_ID
Am I doing something wrong or is there a fix for this problem?
The text was updated successfully, but these errors were encountered: