A mock provider plugin for SimpleNS designed for testing and development purposes.
npm install @simplens/mockAdd the mock provider to your simplens.config.yaml:
providers:
- name: mock
package: '@simplens/mock'
options:
rateLimit:
maxTokens: 100
refillRate: 10The mock provider accepts notifications with the following structure:
{
channel: 'mock',
recipient: {
user_id: string
},
content: {
message: string
}
}| Option | Type | Default | Description |
|---|---|---|---|
rateLimit.maxTokens |
number | 100 | Maximum number of tokens in the rate limit bucket |
rateLimit.refillRate |
number | 10 | Number of tokens refilled per second |
npm run buildnpm testnpm run test:watchMIT
SimpleNS Team