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
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