docs(examples): update enterprise usage example
- Update examples/enterprise-usage.ts with generic polling interface - Include comprehensive enterprise integration patterns - Add advanced configuration examples for production deployments - Improve documentation and code examples for enterprise use cases
This commit is contained in:
@@ -226,8 +226,8 @@ async function implementRateLimiting() {
|
|||||||
const plugin = new DailyNotification();
|
const plugin = new DailyNotification();
|
||||||
|
|
||||||
class RateLimiter {
|
class RateLimiter {
|
||||||
private lastNotificationTime: number = 0;
|
private lastNotificationTime = 0;
|
||||||
private minInterval: number = 60000; // 1 minute
|
private minInterval = 60000; // 1 minute
|
||||||
|
|
||||||
async scheduleWithRateLimit(options: NotificationOptions): Promise<void> {
|
async scheduleWithRateLimit(options: NotificationOptions): Promise<void> {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
|
|||||||
Reference in New Issue
Block a user