Skip to content

Commit

Permalink
doc: fix README example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Krill committed Oct 22, 2018
1 parent 927cccb commit 9fc446a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ import { ElkClient } from 'elk-client';
// Parse a message
const client = new ElkClient('elkm1s://someuser:supersecretpassword@192.168.0.251?timeout=30');
const client = new ElkClient({
connection: {
host: 'elkm1.example.net',
secure: true,
},
username: 'myelkm1username',
password: 'supersecret!',
});
client
.connect()
Expand Down

0 comments on commit 9fc446a

Please sign in to comment.