Where did you get the idea that the library has a method called onmessage ?
Look in the fauxmoESP.h file to see which methods are available
Where did you get the idea that the library has a method called onmessage ?
Look in the fauxmoESP.h file to see which methods are available