diff options
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r-- | src/hypixelCached.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts index 73e75aa..07566f9 100644 --- a/src/hypixelCached.ts +++ b/src/hypixelCached.ts @@ -10,6 +10,7 @@ import * as mojang from './mojang.js' import NodeCache from 'node-cache' import { debug } from './index.js' import LRUCache from 'lru-cache' +import { TLSSocket } from 'tls' // cache usernames for 30 minutes /** uuid: username */ @@ -22,6 +23,9 @@ export const usernameCache = new NodeCache({ }) usernameCache.setMaxListeners(50) +// @ts-ignore for some reason the typings don't have setMaxListeners but it does +TLSSocket.setMaxListeners(50) + export const basicProfilesCache = new NodeCache({ stdTTL: 60 * 10, |