Skip to content

Commit

Permalink
Merge pull request #87 from i8beef/85-BonjourLibraryReplacement
Browse files Browse the repository at this point in the history
Moves to a different bonjour library to address #85 and updates some …
  • Loading branch information
i8beef authored Jun 8, 2022
2 parents 71c8ec5 + 8c60822 commit 465152a
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 604 deletions.
3 changes: 2 additions & 1 deletion castv2-sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module.exports = function(RED) {
"use strict";
const util = require('util');
const net = require('net');
const BonjourService = require('bonjour-service');

const Client = require('castv2-client').Client;

Expand Down Expand Up @@ -735,7 +736,7 @@ module.exports = function(RED) {
function discoverCastTargetsAsync() {
return new Promise((resolve, reject) => {
try {
const bonjour = require('bonjour')();
const bonjour = new BonjourService.Bonjour();
const castTargets = [];
const bonjourBrowser = bonjour.find(
{ type: 'googlecast' },
Expand Down
Loading

0 comments on commit 465152a

Please sign in to comment.