@mixd-id/web-scaffold 0.1.230406305 → 0.1.230406308
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.
- package/package.json +1 -1
- package/src/utils/wss.js +5 -3
package/package.json
CHANGED
package/src/utils/wss.js
CHANGED
|
@@ -99,8 +99,10 @@ class WSS extends EventEmitter2{
|
|
|
99
99
|
|
|
100
100
|
console.log('WSS', process.env.REDIS_HOST, process.env.REDIS_PORT)
|
|
101
101
|
this._client = redis.createClient({
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
socket: {
|
|
103
|
+
host: process.env.REDIS_HOST ?? '127.0.0.1',
|
|
104
|
+
port: process.env.REDIS_PORT ?? 6379
|
|
105
|
+
}
|
|
104
106
|
})
|
|
105
107
|
this._client.connect()
|
|
106
108
|
.then()
|
|
@@ -231,7 +233,7 @@ class WSS extends EventEmitter2{
|
|
|
231
233
|
await subscriber.connect()
|
|
232
234
|
}
|
|
233
235
|
catch(e){
|
|
234
|
-
console.log('#err2',
|
|
236
|
+
console.log('#err2', e)
|
|
235
237
|
return socket.close(1002, e.message);
|
|
236
238
|
}
|
|
237
239
|
|