Closed sean-hill closed 8 years ago
Oh nvm, lol. It's because I'm trying to access a service created in another network using Studio cluster. It appears I have to require the plugin in both networks.
Yes... plugins works only locally Em 18/06/2016 6:01 PM, "Sean Hill" notifications@github.com escreveu:
Oh nvm, lol. It's because I'm trying to access a service created in another network using Studio cluster. It appears I have to require the plugin in both networks.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ericholiveira/studio/issues/56#issuecomment-226964614, or mute the thread https://github.com/notifications/unsubscribe/ABKaZF8PBf9RidUjYWoU4oaLalV0Njwdks5qNFy1gaJpZM4I5CBO .
Hey @ericholiveira,
The docs about how to create a plugin are a little unclear. I'm trying to just create one that logs the response of all services, just to get started. Here's what I have so far (copied from one of the example plugins and modified a bit).
I then initiate it with:
The log
Plugin loaded
is fired, butPlugin started
is never fired when I use one of my services, neither isResponse: <service response>
.I'm just curious how to actually make a plugin. It seems like the boilerplate code is a bit much to create one.