Defining RPC methods nicely
Since the methods are pretty big it's nicer to define them in a separate file, but then to add them as RPC methods I do:
Will I really have to define them all by using that "dumb" "self"-call? Also, since I'll likely want the HTTP api to just call the same method instead of having two places that refer to the same function it'd be nice to have it so I have a single source of truth, making the code:
Seems pretty big considering one could (if this didn't have to be a class):
1 Reply
Plus, it'd be nice to use the
myMethods
example because I can just export its type for use wherever I service-bind