Browse Source

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
master
Matthew Raymer 4 days ago
parent
commit
281fb4af6b
  1. 4
      examples/enterprise-usage.ts

4
examples/enterprise-usage.ts

@ -226,8 +226,8 @@ async function implementRateLimiting() {
const plugin = new DailyNotification();
class RateLimiter {
private lastNotificationTime: number = 0;
private minInterval: number = 60000; // 1 minute
private lastNotificationTime = 0;
private minInterval = 60000; // 1 minute
async scheduleWithRateLimit(options: NotificationOptions): Promise<void> {
const now = Date.now();

Loading…
Cancel
Save