Asynchonous CoAP client and server in PHP