uber-archive / multitransport-jsonrpc

JSON-RPC Client (Node.js & Browser) and Server (Node.js) aim at "natural looking" server and client code.
116 stars 22 forks source link

User tomfoolery shouldn't impact sublime TCP handling. #26

Closed dfellis closed 11 years ago

dfellis commented 11 years ago

Wrap the callback in a try-catch block and throw in a separate event loop run to keep the TCP message array correct even if the user's code breaks.

cc @squamos