How to get a browser and node.js js-ipfs nodes to pubsub properly?










1
















  • Version: version: '0.33.1', repo: 6, commit: ''


  • Platform: Linux ip-172-31-11-196 4.4.0-1069-aws #79-Ubuntu SMP Mon Sep 24 15:01:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


  • Subsystem: pubsub, libp2p

Please review the following configuration options and let me know what, if anything, I can do to get pubsub to work between them. If the problem isn't pubsub, please let me know what it is. I feel like what I need to change is rather minor but I can't seem to find it.



Here is my browser config. It probably looks like I'm just copying and pasting stuff I dont understand. This is only partly true ;) I've been experimenting with different combinations here for hours now. The node.js config is currently identical.




relay: enabled: true, hop: enabled: true, active: true ,
EXPERIMENTAL:
pubsub: true,
,
config:
Bootstrap: [
"/dns4/mydomain.com/tcp/4003/wss/ipfs/QmU............"
],
Addresses:
Swarm: [
'/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star',
'/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-webrtc-star',
'/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-webrtc-star',
'/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-webrtc-star',
'/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star',
'/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-websocket-star',
'/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-websocket-star',
'/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-websocket-star'
]





```



I have confirmed that the nodes are indeed peering but they don't appear to be reading each other's pubsub messages. Please note that this is in service of trying to peer two OrbitDB databases and more details can be found here. https://github.com/orbitdb/orbit-db/issues/496



Thank you!










share|improve this question


























    1
















    • Version: version: '0.33.1', repo: 6, commit: ''


    • Platform: Linux ip-172-31-11-196 4.4.0-1069-aws #79-Ubuntu SMP Mon Sep 24 15:01:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


    • Subsystem: pubsub, libp2p

    Please review the following configuration options and let me know what, if anything, I can do to get pubsub to work between them. If the problem isn't pubsub, please let me know what it is. I feel like what I need to change is rather minor but I can't seem to find it.



    Here is my browser config. It probably looks like I'm just copying and pasting stuff I dont understand. This is only partly true ;) I've been experimenting with different combinations here for hours now. The node.js config is currently identical.




    relay: enabled: true, hop: enabled: true, active: true ,
    EXPERIMENTAL:
    pubsub: true,
    ,
    config:
    Bootstrap: [
    "/dns4/mydomain.com/tcp/4003/wss/ipfs/QmU............"
    ],
    Addresses:
    Swarm: [
    '/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star',
    '/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-webrtc-star',
    '/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-webrtc-star',
    '/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-webrtc-star',
    '/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star',
    '/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-websocket-star',
    '/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-websocket-star',
    '/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-websocket-star'
    ]





    ```



    I have confirmed that the nodes are indeed peering but they don't appear to be reading each other's pubsub messages. Please note that this is in service of trying to peer two OrbitDB databases and more details can be found here. https://github.com/orbitdb/orbit-db/issues/496



    Thank you!










    share|improve this question
























      1












      1








      1









      • Version: version: '0.33.1', repo: 6, commit: ''


      • Platform: Linux ip-172-31-11-196 4.4.0-1069-aws #79-Ubuntu SMP Mon Sep 24 15:01:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


      • Subsystem: pubsub, libp2p

      Please review the following configuration options and let me know what, if anything, I can do to get pubsub to work between them. If the problem isn't pubsub, please let me know what it is. I feel like what I need to change is rather minor but I can't seem to find it.



      Here is my browser config. It probably looks like I'm just copying and pasting stuff I dont understand. This is only partly true ;) I've been experimenting with different combinations here for hours now. The node.js config is currently identical.




      relay: enabled: true, hop: enabled: true, active: true ,
      EXPERIMENTAL:
      pubsub: true,
      ,
      config:
      Bootstrap: [
      "/dns4/mydomain.com/tcp/4003/wss/ipfs/QmU............"
      ],
      Addresses:
      Swarm: [
      '/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star',
      '/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-websocket-star',
      '/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-websocket-star',
      '/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-websocket-star'
      ]





      ```



      I have confirmed that the nodes are indeed peering but they don't appear to be reading each other's pubsub messages. Please note that this is in service of trying to peer two OrbitDB databases and more details can be found here. https://github.com/orbitdb/orbit-db/issues/496



      Thank you!










      share|improve this question















      • Version: version: '0.33.1', repo: 6, commit: ''


      • Platform: Linux ip-172-31-11-196 4.4.0-1069-aws #79-Ubuntu SMP Mon Sep 24 15:01:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


      • Subsystem: pubsub, libp2p

      Please review the following configuration options and let me know what, if anything, I can do to get pubsub to work between them. If the problem isn't pubsub, please let me know what it is. I feel like what I need to change is rather minor but I can't seem to find it.



      Here is my browser config. It probably looks like I'm just copying and pasting stuff I dont understand. This is only partly true ;) I've been experimenting with different combinations here for hours now. The node.js config is currently identical.




      relay: enabled: true, hop: enabled: true, active: true ,
      EXPERIMENTAL:
      pubsub: true,
      ,
      config:
      Bootstrap: [
      "/dns4/mydomain.com/tcp/4003/wss/ipfs/QmU............"
      ],
      Addresses:
      Swarm: [
      '/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-webrtc-star',
      '/dnsaddr/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star',
      '/dnsaddr/ws-star-signal-1.servep2p.com/tcp/443/wss/p2p-websocket-star',
      '/dnsaddr/ws-star-signal-2.servep2p.com/tcp/443/wss/p2p-websocket-star',
      '/dnsaddr/ws-star-signal-3.servep2p.com/tcp/443/wss/p2p-websocket-star'
      ]





      ```



      I have confirmed that the nodes are indeed peering but they don't appear to be reading each other's pubsub messages. Please note that this is in service of trying to peer two OrbitDB databases and more details can be found here. https://github.com/orbitdb/orbit-db/issues/496



      Thank you!







      node.js ipfs orbitdb






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 15 '18 at 18:53









      aphelionzaphelionz

      312113




      312113






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53326160%2fhow-to-get-a-browser-and-node-js-js-ipfs-nodes-to-pubsub-properly%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53326160%2fhow-to-get-a-browser-and-node-js-js-ipfs-nodes-to-pubsub-properly%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto