No documentation, and the provided example in the repo doesn't seem to give me much idea on how to use it 👎
hi there, i need to create a soket that can get information from an other soket. my node server is hosted and i want to create in my localhost a soket that can connect to that server and give me some text information.
can anyone help me with this?
thank you for helping, but i can't found the plugin. PS : im new with node.js so plz help with a snippet.
Now that I re-read what you originally asked, I'm curious if you actually need "Sockets" (as in SocketIO, which is server-initiated TCP/IP connection to a browser) or if APIs on both the hosted NodeBB server and the localhost server would do this better.
Either way, if you choose to go the NodeBB plugin route, you will need to know which Hooks are available. A "hook" is an event that your plugin subscribes to. When that event happens in the core NodeBB server, it will call the function in your plugin which subscribes to the event.