Make `rpc` handlers abstract arrow function properties.
tegefaulkes opened this issue · comments
Specification
Currently the rpc
handlers are abstract methods that need to be implemented. These should be an abstract arrow function property and handlers should be implemented as arrow functions. This will allow us to use them without rebinding the this
context.
This should be done during the agent migration PR.
Additional context
- Should be done during MatrixAI/Polykey#512
- Related MatrixAI/Polykey#509 .
Tasks
- Update the abstract handler's
handle
methods to be abstract arrow function properties.
This is moved here as updating this in js-rpc will force the adoption of it in Polykey when it updates.
You need to re-open this. It should be closed automatically by #8 being merged.