File tree Expand file tree Collapse file tree 6 files changed +49
-0
lines changed
Expand file tree Collapse file tree 6 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,12 @@ export class FoundryHandle extends WebsocketPlugin {
1515 constructor ( ) {
1616 super ( profile )
1717 }
18+
19+ callPluginMethod ( key , payload = [ ] ) {
20+ if ( this . socket . readyState !== this . socket . OPEN ) {
21+ console . log ( `${ this . profile . name } connection is not opened.` )
22+ return false
23+ }
24+ return super . callPluginMethod ( key , payload )
25+ }
1826}
Original file line number Diff line number Diff line change @@ -15,4 +15,12 @@ export class GitHandle extends WebsocketPlugin {
1515 constructor ( ) {
1616 super ( profile )
1717 }
18+
19+ callPluginMethod ( key , payload = [ ] ) {
20+ if ( this . socket . readyState !== this . socket . OPEN ) {
21+ console . log ( `${ this . profile . name } connection is not opened.` )
22+ return false
23+ }
24+ return super . callPluginMethod ( key , payload )
25+ }
1826}
Original file line number Diff line number Diff line change @@ -15,4 +15,12 @@ export class HardhatHandle extends WebsocketPlugin {
1515 constructor ( ) {
1616 super ( profile )
1717 }
18+
19+ callPluginMethod ( key , payload = [ ] ) {
20+ if ( this . socket . readyState !== this . socket . OPEN ) {
21+ console . log ( `${ this . profile . name } connection is not opened.` )
22+ return false
23+ }
24+ return super . callPluginMethod ( key , payload )
25+ }
1826}
Original file line number Diff line number Diff line change @@ -16,4 +16,12 @@ export class SlitherHandle extends WebsocketPlugin {
1616 constructor ( ) {
1717 super ( profile )
1818 }
19+
20+ callPluginMethod ( key , payload = [ ] ) {
21+ if ( this . socket . readyState !== this . socket . OPEN ) {
22+ console . log ( `${ this . profile . name } connection is not opened.` )
23+ return false
24+ }
25+ return super . callPluginMethod ( key , payload )
26+ }
1927}
Original file line number Diff line number Diff line change @@ -15,4 +15,13 @@ export class TruffleHandle extends WebsocketPlugin {
1515 constructor ( ) {
1616 super ( profile )
1717 }
18+
19+ callPluginMethod ( key , payload = [ ] ) {
20+ if ( this . socket . readyState !== this . socket . OPEN ) {
21+ console . log ( `${ this . profile . name } connection is not opened.` )
22+ return false
23+ }
24+ return super . callPluginMethod ( key , payload )
25+ }
26+
1827}
Original file line number Diff line number Diff line change @@ -71,6 +71,14 @@ export class RemixdHandle extends WebsocketPlugin {
7171
7272 }
7373
74+ async callPluginMethod ( key : string , payload ?: any [ ] ) {
75+ if ( this . socket . readyState !== this . socket . OPEN ) {
76+ console . log ( `${ this . profile . name } connection is not opened.` )
77+ return false
78+ }
79+ return super . callPluginMethod ( key , payload )
80+ }
81+
7482 /**
7583 * connect to localhost if no connection and render the explorer
7684 * disconnect from localhost if connected and remove the explorer
You can’t perform that action at this time.
0 commit comments