Skip to content

Commit d04a701

Browse files
committed
removed some white space
1 parent 1b53a02 commit d04a701

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

mqtt/app.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
var app = require('http').createServer(handler),
22
io = require('socket.io').listen(app),
3-
fs = require('fs')
4-
5-
6-
7-
8-
3+
fs = require('fs')
94

105
app.listen(8500);
116

12-
137
function handler (req, res) {
148
console.log('Connection from %j', req.connection.remoteAddress);
159
fs.readFile(__dirname + '/index.html',
@@ -25,7 +19,6 @@ function handler (req, res) {
2519

2620

2721
io.sockets.on('connection', function (socket) {
28-
2922
var mqtt = require('mqtt');
3023
var client = mqtt.createClient(1883, 'localhost', function(err, client) {
3124
keepalive: 10000
@@ -39,6 +32,5 @@ io.sockets.on('connection', function (socket) {
3932
socket.emit('data', { channel: 0, value: message });
4033
});
4134
});
42-
4335
});
4436

0 commit comments

Comments
 (0)