* Moves LiveQuery pub/sub to adapter folder * Adds ability to provide custom adapter for LiveQuery pubsub * Adds test for function based adapter * Pass all options to createSubscriber * nits
19 lines
341 B
JavaScript
19 lines
341 B
JavaScript
import redis from 'redis';
|
|
|
|
function createPublisher({redisURL}): any {
|
|
return redis.createClient(redisURL, { no_ready_check: true });
|
|
}
|
|
|
|
function createSubscriber({redisURL}): any {
|
|
return redis.createClient(redisURL, { no_ready_check: true });
|
|
}
|
|
|
|
const RedisPubSub = {
|
|
createPublisher,
|
|
createSubscriber
|
|
}
|
|
|
|
export {
|
|
RedisPubSub
|
|
}
|