Google Chat code is done but how to connect to the standalone app (PWA)?

How to connect Google Chat to the The standalone app ? It is a Progressive Web Application (PWA) that provides a native app experience.