FAQ
Frequently asked questions about DNotifier SDKs, transports, limits, and integration patterns.
General
What is DNotifier?
DNotifier is a realtime messaging and AI platform. SDKs provide WebSocket and HTTP transports, directed 1:1 messaging, chat history, AI prompts, knowledge-base (RAG) APIs, and multi-step workflows with observability.
Which SDKs are available?
.NET, Android, and iOS native SDKs are coming soon.
→ Installation
Do I need an account?
Yes. Register at app.dnotifier.com, create an app, and use the App ID and secret in your SDK constructor.
→ Getting set up
Transport
Should I use WebSocket or HTTP?
Live chat, realtime notifications
ws
AI, RAG, workflows
http
Many apps use both — WebSocket in the client, HTTP on the server.
Does HTTP transport receive onMessage?
No. HTTP is request/response. Incoming realtime messages require transport: "ws" and a connected client.
Why does Node.js need WebSocketImpl?
Node has no built-in WebSocket client. Pass the ws package:
Browsers and Dart use native or package WebSocket support automatically.
Messaging
How does routing work?
Messages are sent from senderId to receiverId or receiverIds. Each connected client authenticates with a userId. The receiver must be connected with a matching ID.
There are no broadcast topics or channel subscriptions. To notify multiple users, send to an explicit list of IDs.
Can two apps use the same userId?
The SDK prefixes IDs with your appId internally, so collisions across apps are avoided. Within one app, userId must be unique per connected logical user.
How do large files work?
Payloads over messageSizeLimit are chunked automatically and reassembled on the receiver. You typically use normal send() — chunking is transparent.
Chat and history
How do I load chat history?
Call fetchChatHistory({ senderId, receiverIds }). The server responds asynchronously via onMessage with the history payload.
→ Chat history
How do I delete a message?
Use deleteChatHistoryMessage or deleteAIHistoryMessage with the message ID from metadata or history response.
What does saveHistory do?
When true (default), the message is stored in chat history. Set false for ephemeral signals.
AI and knowledge base
Why is aiEnabled false?
Your plan may not include AI, or you are on a tier without AI features. Check the dashboard and getPlanLimits() after connect().
→ Troubleshooting — AI not enabled
Can I use OpenAI directly?
Use sendAI — DNotifier manages the AI pipeline. The legacy sendWithOpenAI is deprecated.
→ Send a prompt
How does RAG work?
Add documents with addDocument, then call search or use useKnowledgeBase: true in sendAI messages.
Can I use my own vector store?
Yes. Set serverConfig on the client with a vectorStore and an embedding. Leave them unset to keep Postgres and the subscription embedding model. A value on one search or document call overrides the saved config for that call.
→ Vector stores and embeddings
How do I enable AI observability?
Set observability: true on your Workflow, connect with HTTP, and call runWorkflow. Find the run under Dashboard → Workflows using executionId.
→ How to enable AI workflow observability · Observability FAQ
How do I enable logs?
Pass logs: true in the DNotifier constructor. Session telemetry appears under Dashboard → Logs.
→ How to enable session logs
How do I save AI message history?
Use saveHistory: true on sendAI (default), then load with fetchAIHistory.
→ How to save AI message history
What is the difference between logs, saveHistory, and observability?
logs: true
Ops session telemetry (dashboard Logs)
saveHistory
Product AI history (fetchAIHistory)
observability: true
Workflow step graph (dashboard Workflows)
Workflows
What are workflows?
Named, multi-step pipelines composed of agents. Each agent runs logic and can call sendAI, search, and knowledge-base APIs via WorkflowContext.
Do workflows work over WebSocket?
No. Use transport: "http" and runWorkflow() after connect().
What is observability?
When observability: true, execution and step telemetry appear in the DNotifier workflow dashboard, including executionId in the run result.
→ Workflow observability · Observability FAQ
Security
Can I put the secret in my React app?
Is traffic encrypted?
Yes. Production endpoints use HTTPS and WSS to api.dnotifier.com.
Limits and billing
Where do I see my limits?
getPlanLimits() after connect(), and the dashboard.
→ Performance & limits · Pricing & plans
What happens when I exceed a limit?
Behavior depends on the limit — sends may fail, AI calls may error, or features may be disabled until the next billing period. Check error messages and dashboard usage.
Platform-specific
Flutter vs pure Dart?
Same dnotifier package. Flutter adds UI lifecycle concerns; pure Dart suits servers and CLI tools.
→ Flutter platform guide · Pure Dart platform guide
Can I use DNotifier in a browser?
Yes. Use the JavaScript SDK with native WebSocket — no ws package.
Getting help
→ Troubleshooting · Debugging · Support & links
Last updated