Things that I want to improve in the future:
-
Features
- Implement feature that allows users to associate custom exceptions to jsonrpc error codes so that the jsonrpc response will have a custom error code (currently, error responses for user exceptions will always have the error code -32000)
- Support middlewares
- Redesign context feature
- Make
JsonRpcServer.accept
method return the response
-
Performance
- Improving the engine instantiation by moving method definitions to a shared prototype object so that each function wont be recreated for each engine
- Consider alternatives to using proxies in the server context prototypes
- Consider alternatives to using proxies in the dual engine prototype
-
Tests
- Implement pending tests
- Create benchmark/performance tests
-
Documentation
- Create documentation for context-related features
- Create ts type files
- Add coverage badge to readme file
-
Other
- Use babel to support older Node.js versions
- Move the tasks in this document to an external tool (e.g. GitHub Projects)