Options
All
  • Public
  • Public/Protected
  • All
Menu

Listens to OSC events and executes callback functions.

// example
const oscListener = new broox.mediaPlayer.OscListener();
oscListener.add('/start', () => console.log('Start'));

Hierarchy

  • OscListener

Index

Constructors

Methods

Constructors

Methods

  • add(event: string, callback: (() => any)): void
  • Adds a callback function to the given event.

    Parameters

    • event: string

      Event name to listen to.

    • callback: (() => any)

      Function to execute when the event is recieved.

        • (): any
        • Returns any

    Returns void

Generated using TypeDoc