File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jsmodbus" ,
3
- "version" : " 4.0.7 " ,
3
+ "version" : " 4.0.8 " ,
4
4
"description" : " Implementation for the Serial/TCP Modbus protocol." ,
5
5
"author" : " Stefan Poeter <stefan.poeter@cloud-automation.de>" ,
6
6
"main" : " ./dist/modbus.js" ,
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ export default class ModbusTCPClientRequestHandler extends MBClientRequestHandle
39
39
40
40
this . _socket . on ( 'connect' , this . _onConnect . bind ( this ) )
41
41
this . _socket . on ( 'close' , this . _onClose . bind ( this ) )
42
+
43
+ // Check if the passed in socket connection is already connected
44
+ if ( this . _socket . readyState === 'open' ) {
45
+ this . _onConnect ( )
46
+ }
42
47
}
43
48
44
49
// TODO: Find a better way then putting in the any overide
You can’t perform that action at this time.
0 commit comments