|
@ -11,7 +11,7 @@ const createAdapter = require('socket.io-redis'); |
|
|
//import { RedisClient } from 'redis';
|
|
|
//import { RedisClient } from 'redis';
|
|
|
const RedisClient = require("redis"); |
|
|
const RedisClient = require("redis"); |
|
|
//const pubClient = redis.createClient({ host: 'localhost', port: 6379 } );
|
|
|
//const pubClient = redis.createClient({ host: 'localhost', port: 6379 } );
|
|
|
const pubClient = redis.createClient(); |
|
|
const pubClient = RedisClient.createClient(); |
|
|
|
|
|
|
|
|
//const pubClient = new RedisClient({ host: 'localhost', port: 6379 });
|
|
|
//const pubClient = new RedisClient({ host: 'localhost', port: 6379 });
|
|
|
const subClient = pubClient.duplicate(); |
|
|
const subClient = pubClient.duplicate(); |
|
|