jstrace middleware for socket.io