fauxmo.onMessage

As suspect the library has no function named onMessage() so it looks like it has either been changed or there is more than one version of it