constInputRange=require('@v142857/input-range')constinput=InputRange({min: 0,max: 100,},protocol)//these are the defaultsdocument.body.append(input)functionprotocol(notify){// notify here is the function you use to notify the sub componentreturnlisten}functionlisten(message){// here you will receive messages from the sub componentconst{ type, data }=message}