HenningM / express-ws

WebSocket endpoints for express applications
BSD 2-Clause "Simplified" License
877 stars 142 forks source link

Node fails silently with error in middlewares. #100

Open Ranguna opened 6 years ago

Ranguna commented 6 years ago

When a middleware is registered to a ws path, if it fails assert(false), node doesn't break and it simply fails silently.

Node should break the server whenever an error occurres.

alasdairhurst commented 5 years ago

Same as https://github.com/HenningM/express-ws/issues/87 but it's still a valid point. Silent errors suck. There's a similar sucky issue with the inablity to handle errors thrown inside websocket events