updated arduinofun with websocket api callback