spacebro-client
Advanced tools
Comparing version 0.0.5 to 0.0.6
'use strict' | ||
var mdns = require('mdns') | ||
@@ -6,3 +7,2 @@ var _ = require('lodash') | ||
module.exports = { | ||
// TODO: process mdns erros | ||
connectToService: function (servicename, callback) { | ||
@@ -20,3 +20,2 @@ var services = [] | ||
}) | ||
// var browser = mdns.createBrowser(mdns.tcp(servicename)) | ||
browser.on('serviceUp', function (service) { | ||
@@ -23,0 +22,0 @@ console.log('service up: ', service.type.name) |
{ | ||
"name": "spacebro-client", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Allow to automagically 🌟 connect to a Spacebro server", | ||
"main": "index.js", | ||
"main": "build/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"example": "node ./example/index-example.js" | ||
"example": "node ./example/index-example.js", | ||
"build": "babel src -d build" | ||
}, | ||
@@ -36,3 +37,10 @@ "repository": { | ||
"socket.io-client": "^1.3.7" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.3.17", | ||
"babel-preset-es2015": "^6.3.13" | ||
}, | ||
"babel": { | ||
"presets": ["es2015"] | ||
} | ||
} |
8730
7
150
2