MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / buildBuilder

Function buildBuilder

map-chat/javascript/browserMqtt.js:836–845  ·  view source on GitHub ↗
(client, opts)

Source from the content-addressed store, hash-verified

834 you have all required information in opts object
835*/
836function buildBuilder (client, opts) {
837 var port, host;
838 opts.port = opts.port || 1883;
839 opts.hostname = opts.hostname || opts.host || 'localhost';
840
841 port = opts.port;
842 host = opts.hostname;
843
844 return net.createConnection(port, host);
845}
846
847module.exports = buildBuilder;
848

Callers

nothing calls this directly

Calls 2

emitMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected