Closed spacesuitdiver closed 7 years ago
express-ws
will emit GET request to a fake address when receiving each websocket request (when the connection starts). Can bunyan-middleware
log those GET requests? I think they contain enough information about each websocket connection. If you need to log every time a socket receives, sends or emits an error, etc., this PR may help.
@roastduck If it's creating a GET request similar to how express does it doesn't seem to log anything.
-- EDIT --
I guess I spoke too soon, I do get a log to /.websocket
.
@LeBlaaanc Does it meet your requirement? Maybe you can close this issue.
With regular express requests I'm using
bunyan-middleware
any thoughts on how to log ws handlers similarly?