Figure out how to improve throws
Pomax opened this issue · comments
Pomax commented
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.
Pomax commented
This obviously needs some tests, too.
- test calling missing function
- test calling a function that, itself, throws.