Very newbie question about custom module

Here's my custom module

module.exports = {

    oscInFilter:function(data)
	{
        var {address, args, host, port} = data

		
        if (address !== '/control') return
		if (args[1].value == 127) 
			{
			send('midi', 'OSCtoDAW', '/control', 1,126,1)
			return
			}	


    return {address, args, host, port}

	},
}

My external midi controller have a program change button.
But osc only recognize contol data.
I think this releated to my coustom module.
How should I do to osc process program change data?

Sorry this is too newbit question I think.

ps) I have zero knowledge about coding? script?
What should I learn to understand osc?

Thank you

The custom module's oscInFilter function processes incoming messages and let them through only if the input data is returned:

return {address, args, host, port}

If this statement is not reached, the original message will not make it to the osc client.

In your custom module, the statement

if (address !== '/control') return

prevents any message that's not a control change from being processed.

Some javascript knowledge is required to write a custom module properly (works for widget scripting too). There are plenty of resources on the web to learn the basics of the syntax, variables, functions, conditionals, etc.