Commit e746ae7395aae64ef5af554c57c0c2f20d90a1bd
1 parent
cfc5bd0036
Exists in
master
console log
Showing
1 changed file
with
1 additions
and
7 deletions
Show diff stats
index.js
1 | -const express = require('express'); | |
2 | -const app = express(); | |
3 | - | |
4 | 1 | const WebSocketClient = require('ws'); |
5 | 2 | const config = require('./config/config.json'); |
6 | 3 | const data = require('./data/index')(config.bo); |
7 | 4 | |
8 | -app.listen(config.port); | |
9 | -app.use(express.json({limit: '50mb'})); | |
10 | - | |
11 | 5 | const client = new WebSocketClient(config.urlHO); |
12 | 6 | |
13 | 7 | client.on('open', function open() { |
... | ... | @@ -33,4 +27,4 @@ client.on('open', function open() { |
33 | 27 | }); |
34 | 28 | }); |
35 | 29 | |
36 | -console.log('Sevice open port ' + config.port); | |
30 | +console.log('Sevice connected to wsServer: ' + config.urlHO); |