You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if you’re using [Webpack][] or a similar build setup, or requesting the .js library at load time isn’t desirable, just add the client library as an NPM dependency (npm install @horizon/client).
In your application, you’ll need to include the Horizon client file, and specify the Horizon port number when initializing the connection.
<scriptsrc="localhost:8181/horizon/horizon.js"></script>// Specify the host property for initializing the Horizon connectionconsthorizon=Horizon({host: 'localhost:8181'});
In your application, you’ll need to include the Horizon client file, and specify the Horizon port number when initializing the connection. shouldn't be In your application, you’ll need to import the Horizon client file, and specify the Horizon port number when initializing the connection.?
Also the code shouldn't be:
importHorizonfrom'@horizon/client';// Specify the host property for initializing the Horizon connectionconsthorizon=Horizon({host: 'localhost:8181'});
?
The text was updated successfully, but these errors were encountered:
In http://horizon.io/docs/getting-started/ the docs say:
In your application, you’ll need to include the Horizon client file, and specify the Horizon port number when initializing the connection.
shouldn't beIn your application, you’ll need to import the Horizon client file, and specify the Horizon port number when initializing the connection.
?Also the code shouldn't be:
?
The text was updated successfully, but these errors were encountered: