Browse Source

try'

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

6
api/utils/socket.ts

@ -1,7 +1,9 @@
const socketio = require("socket.io");
let io: any
const connect = (server) => {
const io = require('socket.io')(server, {
function connect(server) {
io = socketio(server, {
path: '/socket',
serveClient: false,
// below are engine.IO options

7
dist/api/utils/socket.js

@ -1,8 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const socketio = require("socket.io");
let io;
const connect = (server) => {
const io = require('socket.io')(server, {
function connect(server) {
io = socketio(server, {
path: '/socket',
serveClient: false,
// below are engine.IO options
@ -15,7 +16,7 @@ const connect = (server) => {
client.on('event', data => { });
client.on('disconnect', () => { });
});
};
}
exports.connect = connect;
const send = (body) => {
// srvr.clients.forEach(c=>{

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

@ -1 +1 @@
{"version":3,"file":"socket.js","sourceRoot":"","sources":["../../../api/utils/socket.ts"],"names":[],"mappings":";;AAAA,IAAI,EAAO,CAAA;AAEX,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,EAAE;IACzB,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE;QACtC,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,KAAK;QAClB,8BAA8B;QAC9B,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,KAAK;KACd,CAAC,CAAC;IAEH,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE;QAC3B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;QACxC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,GAAW,CAAC,CAAC,CAAC;QACxC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,GAAW,CAAC,CAAC,CAAC;IAC7C,CAAC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