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);