...Initializing just before you needed is discouraged as it incurs on a performance hit. Calling this method multiple times without ending the previous connection will result in an error. Not calling this method will cause other method calls to be rejected as a connection needs to be established ahead of time. You should not call initConnection and endConnection every time you need to interact with the library. This is considered an anti-pattern as it consumes more time, and resources and could lead to undesired side effects such as many callbacks.