import { NodeCG } from "nodecg-types/types/server" ; import { Result , emptySuccess , success , ServiceBundle , Logger } from "nodecg-io-core" ; import { DebugHelper } from "./debugHelper" ; export { DebugHelper } from "./debugHelper" ; module . exports = ( nodecg ) => { new DebugService ( nodecg , "debug" ) . register ( ) ; } ; class DebugService extends ServiceBundle < never , DebugHelper > { async validateConfig ( ) { return emptySuccess ( ) ; } async createClient ( _ , logger ) { const client = DebugHelper . createClient ( this . nodecg , logger ) ; logger . info ( "Successfully created debug helper." ) ; return success ( client ) ; } stopClient ( _ , logger ) { logger . info ( "Successfully stopped debug client." ) ; } removeHandlers ( client ) { client . removeAllListeners ( ) ; } requiresNoConfig = true ; }