Browse Source

try

bugfix/timeout-logging
Evan Feenstra 5 years ago
parent
commit
fe8172f7ce
  1. 4
      api/utils/socket.ts
  2. 2
      dist/api/utils/socket.js
  3. 2
      dist/api/utils/socket.js.map

4
api/utils/socket.ts

@ -5,12 +5,12 @@ let io: any
let srvr: any
export function connect(server) {
srvr = new WebSocket.Server({ server, clientTracking:true })
io = socketio(server);
io.on('connection', client => {
console.log("=> [socket.io] connected!")
});
srvr = new WebSocket.Server({ server, clientTracking:true })
}
export const send = (body) => {

2
dist/api/utils/socket.js

@ -5,11 +5,11 @@ const socketio = require("socket.io");
let io;
let srvr;
function connect(server) {
srvr = new WebSocket.Server({ server, clientTracking: true });
io = socketio(server);
io.on('connection', client => {
console.log("=> [socket.io] connected!");
});
srvr = new WebSocket.Server({ server, clientTracking: true });
}
exports.connect = connect;
exports.send = (body) => {

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;AAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEtC,IAAI,EAAO,CAAA;AACX,IAAI,IAAS,CAAA;AAEb,SAAgB,OAAO,CAAC,MAAM;IAC5B,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtB,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE;QAC3B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;IAC1C,CAAC,CAAC,CAAC;IAEH,IAAI,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,cAAc,EAAC,IAAI,EAAE,CAAC,CAAA;AAC9D,CAAC;AAPD,0BAOC;AAEY,QAAA,IAAI,GAAG,CAAC,IAAI,EAAE,EAAE;IAC3B,IAAG,EAAE;QAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAC,IAAI,CAAC,CAAA;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