Browse Source

socket check

feature/dockerfile-arm
Evan Feenstra 5 years ago
parent
commit
1ffce1cb02
  1. 2
      api/utils/socket.ts
  2. 2
      config/app.json
  3. 3
      dist/api/utils/socket.js
  4. 2
      dist/api/utils/socket.js.map

2
api/utils/socket.ts

@ -23,7 +23,7 @@ const send = (body) => {
// connections.forEach((socket, index) => {
// socket.send(body)
// })
lastConn.send(body)
if(lastConn) lastConn.send(body)
}
const sendJson = (object) => {

2
config/app.json

@ -12,7 +12,7 @@
"hub_invite_url": "http://lvh.me/invites",
"hub_check_invite_url": "http://lvh.me/check_invite",
"media_host": "localhost:5000",
"tribes_host": "tribes.sphinx.chat:1883"
"tribes_host": "127.0.0.1:1883"
},
"production": {
"senza_url": "https://staging.senza.us/api/v2/",

3
dist/api/utils/socket.js

@ -19,7 +19,8 @@ const send = (body) => {
// connections.forEach((socket, index) => {
// socket.send(body)
// })
lastConn.send(body);
if (lastConn)
lastConn.send(body);
};
exports.send = send;
const sendJson = (object) => {

2
dist/api/utils/socket.js.map

@ -1 +1 @@
{"version":3,"file":"socket.js","sourceRoot":"","sources":["../../../api/utils/socket.ts"],"names":[],"mappings":";;AAAA,gCAA+B;AAE/B,8BAA8B;AAC9B,4BAA4B;AAE5B,IAAI,QAAa,CAAA;AAEjB,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,EAAE;IACzB,MAAM,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAEzC,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAA;IAE9C,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE;QAC/B,OAAO,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAA;QAC9C,gCAAgC;QAChC,8BAA8B;QAC9B,QAAQ,GAAG,MAAM,CAAA;IACnB,CAAC,CAAC,CAAA;AAEJ,CAAC,CAAA;AAcC,0BAAO;AAZT,MAAM,IAAI,GAAG,CAAC,IAAI,EA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