var log4js = require('log4js'); var logger = log4js.getLogger(); var WebSocketServer = require('websocket').server; var EventEmitter = require('events'); var busEmitter = new EventEmitter(); var mqttClient = require('./lib/mqtt/mqttClient'); //var mqttSocket = require('./lib/mqtt/mqttSocket'); //busEmitter.on('startWSConnection', startWSConnection); var mqtt = new mqttClient.mqttClient(busEmitter); /* mqttConnect.setEmitter(busEmitter); mqttConnect.doConnection(); mqttConnect.connectWS(); */