Hi, I'm working on a 'Website2MCPE' project where I'd like to try a 'MCPE2Discord' sort of thing unlike the 'Discord2MCPE' Webhook method here: (https://github.com/InspectorGadget/Discord2MCPE/blob/master/src/RTG/Discord2MCPE/Redirect.php). I've been searching for the right answer for this and yet to be found or explained to me, I've also tried the most complex way by storing messages in SQL for temp and then clear the DB when MCPE has received it - It didn't really work because the while() lags the server big time. Anyone here with any suggestions are mostly welcomed. Thanks!
Have you worked with sockets before? It's efficiently designed for the "storing messages in SQL for temp and then clear the DB when MCPE has received it" part. Database or sockets, try listening for incoming buffers on another thread than the main thread.