mirror of
https://gitlab.silvrtree.co.uk/martind2000/mdot_mqtt.git
synced 2025-01-11 02:45:08 +00:00
29 lines
511 B
JavaScript
29 lines
511 B
JavaScript
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();
|
|
*/
|
|
|