File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,8 @@ The main reason for this part of the module is that you can setup a stratum prox
327327
328328You may also test your pool sending arbitrary test data to see if it's responding properly.
329329
330+ If your URL starts with 'stratum+tcp://', remove it!
331+
330332``` js
331333var client = stratum .Client .create ();
332334
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ var stratum = require('../lib');
33var client = stratum . Client . $create ( ) ;
44
55 //must be specified per EventEmitter requirements
6- client . on ( 'error' , function ( socket ) {
6+ client . on ( 'error' , function ( socket , err ) {
77 socket . destroy ( ) ;
8- console . log ( 'Connection closed' ) ;
8+ console . log ( 'Connection closed with error: ' , err ) ;
99 process . exit ( 1 ) ;
1010} ) ;
1111
@@ -79,4 +79,4 @@ client.connect({
7979 } )
8080 // this can be chained and is the last callback to execute
8181 //.done(function(){ });
82- ;
82+ ;
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ module.exports = function (classes){
3939 }
4040 } ) ;
4141
42- self . socket . on ( 'error' , function clientSocketError ( ) {
42+ self . socket . on ( 'error' , function clientSocketError ( err ) {
4343 if ( self . emit ) {
44- self . emit ( 'error' , self ) ;
44+ self . emit ( 'error' , self , err ) ;
4545 }
4646 } ) ;
4747
@@ -324,4 +324,4 @@ module.exports = function (classes){
324324 } ) ;
325325
326326 return Client ;
327- } ;
327+ } ;
Original file line number Diff line number Diff line change 5050 "better-curry" : " *"
5151 },
5252 "devDependencies" : {
53- "mocha" : " * " ,
53+ "mocha" : " 3.5.3 " ,
5454 "jshint" : " *" ,
5555 "expect.js" : " *" ,
56- "sinon" : " * " ,
56+ "sinon" : " 1.17.7 " ,
5757 "istanbul" : " *" ,
5858 "coveralls" : " *" ,
5959 "mocha-lcov-reporter" : " *"
Original file line number Diff line number Diff line change @@ -1243,4 +1243,4 @@ module.exports = {
12431243 }
12441244 }
12451245 }
1246- } ;
1246+ } ;
You can’t perform that action at this time.
0 commit comments