Initialize()the package with the publishable key. This will return an instance of our client.
projectSubscription()takes no parameters
groupSubscription(greoupID)- takes in group ID as parameter
userSubscription(userID)- takes in a single user ID or a array of user ids as parameter
subscribe()method on the created subscription to start receiving realtime location data
disconnect()call disconnect method on client. Please find the example usage below:
projectSubscription()method of client. It does not take in any parameter.
groupSubscription(groupID)method of client. It takes group ID as parameter.
userSubscription(groupID)method of client. It takes user ID as parameter.
examples/. To run the example, clone this repository, add your sdk key as environment veriable
pkand run the app.