|
@ -39,11 +39,10 @@ const pubtest = new Redis({ |
|
|
|
|
|
|
|
|
//import { createAdapter } from 'socket.io-redis';
|
|
|
//import { createAdapter } from 'socket.io-redis';
|
|
|
const createAdapter = require('socket.io-redis'); |
|
|
const createAdapter = require('socket.io-redis'); |
|
|
//import { RedisClient } from 'redis';
|
|
|
const RedisClient = require("redis"); |
|
|
//const RedisClient = require("redis");
|
|
|
//const Redis = require("ioredis");
|
|
|
const Redis = require("ioredis"); |
|
|
const pubClient = RedisClient.createClient({ |
|
|
//const pubClient = RedisClient.createClient({
|
|
|
//const pubClient = new Redis({
|
|
|
const pubClient = new Redis({ |
|
|
|
|
|
host: 'redisserver', |
|
|
host: 'redisserver', |
|
|
port: 6379, |
|
|
port: 6379, |
|
|
}); |
|
|
}); |
|
|