title: IPFS- How to send message from a peer to another?
body: <p>I am looking for a solution to send a message from an IPFS peer to another</p>
  
  <p>in the <a href="https://github.com/ipfs/js-ipfs" rel="nofollow noreferrer">github doc</a> I found this code that connect a peer to another one :</p>
  
  <pre><code>ipfs.swarm.connect(addr, function (err) {
    if (err) {
      throw err
    }
    // if no err is present, connection is now open
  })
  </code></pre>
  
  <p>but after connection there is nothing to do according to documentation.</p>
  
  <p>There a solution named <a href="https://github.com/ipfs-shipyard/ipfs-pubsub-room" rel="nofollow noreferrer">ipfs-pubsub-room</a> that deal with messaging between peers, but there is no CDN for browser.</p>