const OSC = require ( 'osc-js' ) ; export class OscSender { private osc : any ; constructor ( ) { this . osc = new OSC ( { plugin : new OSC . DatagramPlugin ( { send : { port : 51235 , host : '127.0.0.1' } } ) } ) ; this . osc . open ( ) ; } send ( msg ) { this . osc . send ( msg ) ; } }