Have you tried socket.private.connect_info.request_path?
socket.private.connect_info.request_path
Also, here’s a recent related post: