@achingbrain/ssdp
Version:
Yet another SSDP implementation for node.js
16 lines • 511 B
JavaScript
// @ts-expect-error https://github.com/schnittstabil/merge-options/pull/28
import mergeOptions from 'merge-options';
import { defaultSocketOptions } from './default-socket-options.js';
export function defaultSsdpOptions(options) {
return mergeOptions({
retry: {
times: 5,
interval: 5000
},
cache: true
}, {
...options,
sockets: (options?.sockets ?? [{}]).map(defaultSocketOptions)
});
}
//# sourceMappingURL=default-ssdp-options.js.map