title: In Hyperledger Fabric Composer, how do I send events?
body: <p>In a Hyperledger chaincode, an event can be sent using the following command:</p>
  
  <pre><code>stub.SetEvent("&lt;event name&gt;", "&lt;payload&gt;")
  </code></pre>
  
  <p>In Fabric Composer (specifically in the logic.js file), how do I send a similar event?</p>
  
  <p>And how do I listen to this event in a Node.js application so that my UI can notify the user if a particular event happened already.</p>