Browse Source

redis

master
zeus 4 years ago
parent
commit
5a4c584990
  1. 5
      swarmlab-app/src/run/app.js

5
swarmlab-app/src/run/app.js

@ -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();

Loading…
Cancel
Save