tom
1
Feature request.
It would be great if portalLib.serviceUrl()
could create urls with the websocket protocols (ws://
, wss://
) in addition to http.
Maybe extending the type
parameter with another option could be a solution?
This is what I currently do:
const url = portalLib.serviceUrl({
service: 'my-service',
type: "absolute"
})
.replace("http://", "ws://")
.replace("https://", "wss://");
rymsha
2
Yeah, that is a pain with an ugly but working workaround.
We have an issue in Github for that already.
2 Likes
tsi
3
I guess this actually applies to most “url” functions, not just serviceUrl?
tsi
4
ETA XP 7.7 - follow the task for more details
1 Like