Skip to content

Commit 5b9a40b

Browse files
committed
v1.0.4
fixed docs.. better examples..
1 parent 67d045f commit 5b9a40b

4 files changed

+14
-4
lines changed

Readme.md

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ new Cocker( [ Object options ] )
9595
###### option
9696
```javascript
9797
{
98-
, path : null
9998
, address : Object
10099
, connection : Object
101100
, reconnection : Object

changelog.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
66

77
------------------------------------------------------------------------------
88

9+
## [1.0.4] - 2018-01-01
10+
11+
### Fixed
12+
- docs, path option property was moved into address config hash
13+
- minor fixes..
14+
15+
------------------------------------------------------------------------------
16+
917
## [1.0.3] - 2017-12-30
1018

1119
### Fixed

example/promises-reconn-loop-example.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ var log = console.log
8787
ck.on( 'online', ( addr ) => log( '-> cocker: online!' ) );
8888
ck.on( 'offline', ( addr, haderr ) => log( '-> cocker: offline!' ) );
8989
ck.on( 'attempt', ( t, addr, lapse ) => log( '-> cocker: (%d) attempt (%ds)', t, lapse / 1000 ) );
90-
ck.on( 'close', ( v ) => log( '-> cocker: close!' ) );
91-
ck.on( 'lost', ( addr ) => log( '-> cocker: lost!' ) );
90+
ck.on( 'close', ( v ) => log( '- cocker: close!' ) );
91+
ck.on( 'lost', ( addr ) => log( '- cocker: lost!' ) );
9292
// log close event for server
9393
server.on( 'close', () => log( '-> server: close!' ) );
9494

example/promises-single-address-example.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Cocker example, connect to a socket, through native Prmoises,
3-
* using Cocker#hunt and Cocker#die
3+
* using Cocker#hunt and Cocker#die. When the last #hunt call fails
4+
* to connect, Promise will be rejected (and catched).
45
*/
56
var log = console.log
67
, assert = require( 'assert' )
@@ -31,9 +32,11 @@ var log = console.log
3132
;
3233

3334
// log Cocker events
35+
ck.on( 'online', ( addr ) => log( '-> cocker: online!' ) );
3436
ck.on( 'attempt', ( t, addr, lapse ) =>
3537
log( '- cocker: (%d) attempt (%ds)', t, lapse / 1000 ) );
3638
ck.on( 'offline', ( addr, haderr ) => log( '- cocker: offline!' ) );
39+
ck.on( 'close', ( v ) => log( '- cocker: close!' ) );
3740
ck.on( 'lost', ( v ) => log( '- cocker: lost!' ) );
3841

3942
// run hunt before server is listening

0 commit comments

Comments
 (0)