Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Horizon Client #433

Closed
hnordt opened this issue May 19, 2016 · 1 comment
Closed

[Docs] Horizon Client #433

hnordt opened this issue May 19, 2016 · 1 comment

Comments

@hnordt
Copy link
Contributor

hnordt commented May 19, 2016

In http://horizon.io/docs/getting-started/ the docs say:

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.

<script src="localhost:8181/horizon/horizon.js"></script>

// Specify the host property for initializing the Horizon connection
const horizon = 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:

import Horizon from '@horizon/client';

// Specify the host property for initializing the Horizon connection
const horizon = Horizon({host: 'localhost:8181'});

?

@deontologician
Copy link
Contributor

I've migrated this issue to our docs repo here: rethinkdb/horizon-docs#57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants