MatrixAI / js-rpc

Stream-based JSON RPC for JavaScript/TypeScript Applications

Home Page:https://polykey.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Throwing of Unserializable Issue Should Serialize to Undefined

amydevs opened this issue · comments

commented

Specification

In the case where a handler throws an unserializable error (bigint, symbol, etc.), the server should return a ErrorRPCRemote error to the client with the cause being undefined. The server should also dispatch an event to tell the user that a recoverable error has happened, and that one of their handlers is possibly erroneous.

Additional context

#34

Was solved here: b98a3b0