Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions library/src/SPSApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ export class SPSApplication extends Application {

enforceSpecialSignallingServerUrl() {
// SPS needs a special /ws added to the signalling server url so K8s can distinguish it
this.stream.setSignallingUrlBuilder(()=> {
this.stream.setSignallingUrlBuilder(() => {

// get the current signalling url
let signallingUrl = this.stream.config.getTextSettingValue(TextParameters.SignallingServerUrl);

if (signallingUrl && signallingUrl !== undefined && !signallingUrl.endsWith("/ws")) {
signallingUrl = signallingUrl.endsWith("/") ? signallingUrl + "ws" : signallingUrl + window.location.pathname + "/ws";
}
// add our 'ws' token to the end dependant on whether the URL ends with a '/' or not
signallingUrl = signallingUrl.endsWith("/") ? signallingUrl + "signalling" + window.location.pathname : signallingUrl + "/signalling" + window.location.pathname;

return signallingUrl
});
Expand Down