Allow custom UrlPathHelper for WebSocket requests

Issue: SPR-117711