N
Novu8mo ago
_7eo.

HeadlessService

where can config my backend url when calling HeadlessService?
3 Replies
Ask Inkeep
Ask Inkeep8mo ago
Hi @_7eo., I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question. ----------------------------- While I generate an answer, here are some sources that might be helpful: * Get Started * Headless API Reference * How to use Headless Notification Center * Headless JavaScript Service -----------------------------
Ask Inkeep
Ask Inkeep8mo ago
Answer You can configure your own backend URL when calling the HeadlessService by specifying the backendUrl in the HeadlessService constructor options. Here's how you can do it:
const headlessService = new HeadlessService({
applicationIdentifier: "APPLICATION_IDENTIFIER",
subscriberId: "SUBSCRIBER_ID",
backendUrl: "YOUR_BACKEND_URL",
socketUrl: "YOUR_SOCKET_URL",
});
const headlessService = new HeadlessService({
applicationIdentifier: "APPLICATION_IDENTIFIER",
subscriberId: "SUBSCRIBER_ID",
backendUrl: "YOUR_BACKEND_URL",
socketUrl: "YOUR_SOCKET_URL",
});
This allows you to override the default Novu hosted services of API and socket with your own (1) .
Ask Inkeep
Ask Inkeep8mo ago
Glad I could be helpful. Feel free to create a new thread with any new questions you may have. Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
Want results from more Discord servers?
Add your server