Send reasons with internally generated close codes
Send reasons with internally generated close codes

The error messages in WSProtocolError should be safe for external consumption and are useful to debug issues

telekomatrix/em-websocket,lvnhmd/em-websocket,igrigorik/em-websocket