Pomax / socketless

A framework and methodology for writing web socket RPC programs, without writing a single line of web socket or RPC code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Figure out how to improve throws

Pomax opened this issue · comments

if client calls server.x and server.x does something wrong, the error generated in https://github.com/Pomax/socketless/blob/master/src/upgraded-socket.js#L242-L253 isn't strictly speaking true. The function might not exist, but it might also just have thrown, so we really need to forward the actual error.

This obviously needs some tests, too.

  • test calling missing function
  • test calling a function that, itself, throws.