wscat icon indicating copy to clipboard operation
wscat copied to clipboard

Show code and reason for non-1000 close events from server

Open dstillman opened this issue 10 years ago • 3 comments

Currently, if the server closes the connection with an error code, the code and reason aren't shown in the console:

> foo
disconnected

This patch adds them to the "disconnected" line:

> foo
disconnected with error 4400: Error parsing JSON

dstillman avatar Feb 15 '15 20:02 dstillman

:+1:

jnordberg avatar Jun 27 '15 16:06 jnordberg

+1

oyvindwe avatar Nov 30 '15 12:11 oyvindwe

This looks good. Can you resolve the conflicts and then I'll merge?

nwwells avatar Jan 24 '17 19:01 nwwells