Use an javascript library for ionic framework

Hello everyone
I am new into ionic framework, I just have limited knowledge for angular nodejs and javascript.
I am currently trying to develop an app on both ios and android, so I’m interested in this hybrid solution.
actually , I want to develop a restful web service offering mqtt service, so that we can use it from web , and also from mobile app. I know there are mqtt has javascript based client and libraries , so my plan is build an hybrid app with ionic framework by including those libraries. Is this possible, if yes how can I do it?

I look forward to hearing responses from you
sincerely

I also came across MQTT and wondered if it would be an alternative for push notifications or websockets. Maybe this article is useful? http://thejackalofjavascript.com/getting-started-mqtt/