Script which connect to nodeJS server with socket.io and listen for push notification