From e746ae7395aae64ef5af554c57c0c2f20d90a1bd Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Tue, 18 Jun 2019 16:31:53 -0300 Subject: [PATCH] console log --- index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/index.js b/index.js index a7f9a50..84022c8 100644 --- a/index.js +++ b/index.js @@ -1,13 +1,7 @@ -const express = require('express'); -const app = express(); - const WebSocketClient = require('ws'); const config = require('./config/config.json'); const data = require('./data/index')(config.bo); -app.listen(config.port); -app.use(express.json({limit: '50mb'})); - const client = new WebSocketClient(config.urlHO); client.on('open', function open() { @@ -33,4 +27,4 @@ client.on('open', function open() { }); }); -console.log('Sevice open port ' + config.port); +console.log('Sevice connected to wsServer: ' + config.urlHO); -- 1.9.1