@socket.io/redis-streams-adapter
Version:
The Socket.IO adapter based on Redis Streams, allowing to broadcast events between several Socket.IO servers
22 lines (21 loc) • 813 B
TypeScript
export declare function hasBinary(obj: any, toJSON?: boolean): boolean;
/**
* @see https://redis.io/commands/xread/
*/
export declare function XREAD(redisClient: any, streamName: string, offset: string, readCount: number): any;
/**
* @see https://redis.io/commands/xadd/
*/
export declare function XADD(redisClient: any, streamName: string, payload: any, maxLenThreshold: number): any;
/**
* @see https://redis.io/commands/xrange/
*/
export declare function XRANGE(redisClient: any, streamName: string, start: string, end: string): any;
/**
* @see https://redis.io/commands/set/
*/
export declare function SET(redisClient: any, key: string, value: string, expiryInSeconds: number): any;
/**
* @see https://redis.io/commands/getdel/
*/
export declare function GETDEL(redisClient: any, key: string): any;