Angular JS application to send and receive ONIX for books messages