import "source-map-support/register" ; import createDebug from "debug" ; const version = require ( "../package.json" ) . version ; if ( version . includes ( "beta" ) || process . env . BCT ) { const debug = process . env . DEBUG ; if ( ! debug || ! debug . includes ( "ciao" ) ) { if ( ! debug ) { createDebug . enable ( "ciao:*" ) ; } else { createDebug . enable ( debug + ",ciao:*" ) ; } } } import "./coder/records/index" ; import { Responder , ResponderOptions } from "./Responder" ; export * from "./CiaoService" ; export * from "./Responder" ; export { MDNSServerOptions } from "./MDNSServer" ; function printInitInfo ( ) { const debug = createDebug ( "ciao:init" ) ; debug ( "Loading ciao v" + version + "..." ) ; } printInitInfo ( ) ; /**
 * Defines the transport protocol of a service.
 *
 * As of RFC 6763 7. TCP must be used for any applications using tcp.
 *  For applications using any other transport protocol UDP must be used.
 *  This applies to all other transport protocols like SCTP, DCCP, RTMFP, etc
 */ export const enum Protocol { TCP = "tcp" , UDP = "udp" } param options returns export function getResponder ( options ? ) { return Responder . getResponder ( options ) ; } export default { getResponder : getResponder , } ;