alexkander / loopback-socket

Loopback module for create Socket.io connections and allow call methods and make subscriptions
MIT License
6 stars 2 forks source link

Apply hooks before main-method called #4

Closed chikku1780 closed 4 years ago

chikku1780 commented 5 years ago

Hi

Is there any way that hook method to be executed before calling, Just like API-calls. I've added validations in beforeRemote method. Before/After or any other hook contains params ctx, unused, next..

Is there a way to achieve it.

Thanks in advance.

alexkander commented 5 years ago

Hi There is no way to do it right now. Could you show me an example of code with what you expect? Maybe I can add this as a new feature.

Regards.

alexkander commented 4 years ago

I have closed this issue because missing information to solved it