@vulkano/core 1.15.5 → 1.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -733,10 +733,14 @@ module.exports = function loadServer() {
733
733
 
734
734
  if ( String(adapter).toLocaleLowerCase() === 'redis') {
735
735
 
736
+ const {
737
+ socket: socketRedisConfig
738
+ } = redisAdapter || {};
739
+
736
740
  const {
737
741
  host,
738
742
  port
739
- } = redisAdapter || {};
743
+ } = socketRedisConfig || redisAdapter || {};
740
744
 
741
745
  if (!host || !port) {
742
746
  throw new Error('Unable to connect to Redis. File: "app/config/sockets/adapters/redis.js" to connect the sockets');
@@ -762,16 +766,9 @@ module.exports = function loadServer() {
762
766
 
763
767
  if ( String(adapter).toLocaleLowerCase() === 'redis') {
764
768
 
765
- const propsToRedis = {
766
- host: redisAdapter.host,
767
- port: redisAdapter.port
768
- };
769
-
770
- if (redisAdapter.password) {
771
- propsToRedis.password = redisAdapter.password;
772
- }
769
+ pubClient = socketRedis(redisAdapter);
770
+ pubClient.on('error', (err) => console.log('Socket Redis Client Error', err));
773
771
 
774
- pubClient = socketRedis(propsToRedis);
775
772
  subClient = pubClient.duplicate();
776
773
 
777
774
  io.adapter(socketRedisAdapter(pubClient, subClient));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulkano/core",
3
- "version": "1.15.5",
3
+ "version": "1.15.6",
4
4
  "description": "A MVC framework using Express 4",
5
5
  "license": "MIT",
6
6
  "author": "Vulkano Team",