1
Install Canopy
You need to import an instance of the Canopy Class into your project.All the steps for Canopy as an HTML script tag are the same as that of the ES6
2
Import the Canopy Class
We should try logging the Canopy class to make sure it is properly imported.
3
Get Authentication Token
Since you connect to Canopy from the client side, you will need to use a token to authenticate your requests from the server and pass these to the client.
If you are unsure you can see examples with different languages .
You can get your token from the Dashboard .
4
Initialise Canopy
In Step 2, we imported the Canopy class. Now we need to initialise it with the token we got from Step 3. Click for a full list of paremeters to
pass into
CanopyConfig. In your HTML create an element with id connect.