Update README and publish 0.0.25

This commit is contained in:
Nicolas Dextraze 2017-01-29 11:09:09 -08:00
parent b9de9568a5
commit cf196b9cc2
2 changed files with 13 additions and 3 deletions

View File

@ -6,7 +6,6 @@ A port of the EventStore .Net ClientAPI to Node.js
### Missing features: ### Missing features:
- Ssl connection - Ssl connection
- Cluster discovery via dns (works using gossip seeds)
- Set system settings - Set system settings
### Areas to improve ### Areas to improve
@ -50,7 +49,18 @@ var esClient = require('eventstore-node');
var uuid = require('uuid'); var uuid = require('uuid');
var streamName = "testStream"; var streamName = "testStream";
var esConnection = esClient.createConnection({}, "tcp://localhost:1113"); /*
Connecting to a single node using "tcp://localhost:1113"
- to connect to a cluster via dns discovery use "discover://my.host:2113"
- to connect to a cluster via gossip seeds use
[
new esClient.GossipSeed({host: '192.168.1.10', port: 2113}),
new esClient.GossipSeed({host: '192.168.1.11', port: 2113}),
new esClient.GossipSeed({host: '192.168.1.12', port: 2113})
]
*/
var connSettings = {}; // Use defaults
var esConnection = esClient.createConnection(connSettings, "tcp://localhost:1113");
esConnection.connect(); esConnection.connect();
esConnection.once('connected', function (tcpEndPoint) { esConnection.once('connected', function (tcpEndPoint) {
console.log('Connected to eventstore at ' + tcpEndPoint.host + ":" + tcpEndPoint.port); console.log('Connected to eventstore at ' + tcpEndPoint.host + ":" + tcpEndPoint.port);

View File

@ -1,6 +1,6 @@
{ {
"name": "eventstore-node", "name": "eventstore-node",
"version": "0.0.24", "version": "0.0.25",
"description": "A port of the EventStore .Net ClientAPI to Node.js", "description": "A port of the EventStore .Net ClientAPI to Node.js",
"main": "index.js", "main": "index.js",
"types": "index.d.ts", "types": "index.d.ts",