This appears to be one of those things that is impossible to search for because all of the current search engines refuse to do literal searches. So it would be great to get a definitive answer.
If I have a JavaScript statement like:
const clientRealIpAddress =
//get ip from behind a nginx proxy or proxy using nginx's 'x-real-ip header
socket.request?.headers['x-real-ip']
//get ip from behind a general proxy
|| socket.request?.headers['x-forwarded-for']?.split(',').shift() //if more thatn one x-fowared-for the left-most is the original client. Others after are successive proxys that passed the request adding to the IP addres list all the way back to the first proxy.
//get ip from socket.request that returns the reference to the request that originated the underlying engine.io Client
|| socket.request?.connection?.remoteAddress
// get ip from socket.handshake that is a object that contains handshake details
|| socket.handshake?.address
What does the ?.
do?