function getClientPageName(socket, node) {
    let pageName = socket.handshake.auth.pathName.replace(`/${node.url}/`, '')
    if ( pageName.endsWith('/') ) pageName += 'index.html'
    if ( pageName === '' ) pageName = 'index.html'

    return pageName
} // --- End of getClientPageName --- //
Get client real ip address - NB: Optional chaining (?.) is node.js v14 not v12
@param {socketio.Socket} socket Socket.IO socket object
@param {uibNode} node Reference to the uibuilder node instance
@returns {string | string[] | undefined} Best estimate of the client's real IP address