Skip to content
  • 0 Votes
    21 Posts
    2k Views
    phenomlabP
    @Topper Always happy to help. Good luck !
  • How to write hooks

    Tutorials
    5
    6 Votes
    5 Posts
    1k Views
    barisB
    Quick start plugin has an example on how to add a new api route https://github.com/NodeBB/nodebb-plugin-quickstart/blob/master/library.js#L40-L76. The hooks that are fired client side are for client side code in plugins. If you want to pass data from the client to the server you have two options. Create an api route like in quick start plugin Create a new socket event listener on the server side and use socket.emit() client side. Example here