Browse Source

async

master
zeus 4 years ago
parent
commit
3c64f41874
  1. 9
      swarmlab-app/src/run/app.js

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

@ -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,
}); });

Loading…
Cancel
Save