Browse Source

redis

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

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

@ -11,7 +11,7 @@ const createAdapter = require('socket.io-redis');
//import { RedisClient } from 'redis';
const RedisClient = require("redis");
//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 subClient = pubClient.duplicate();

Loading…
Cancel
Save