Contain functionality for using RPC conection
Connection object
Disconnect callback
Object containing handlers for each request by name
Make a notification
Method name
Method params
Make a request
Promise which will be resolved after receiving response message
Contain functionality for using RPC conection
Param: connection
Connection object
Param: onDisconnect
Disconnect callback
Param: methods
Object containing handlers for each request by name