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