Skip to content

Commit

Permalink
configurable url for websocket connection
Browse files Browse the repository at this point in the history
  • Loading branch information
esara committed Sep 15, 2019
1 parent e8ebccf commit 3fcc1ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/mediationcontainer/client_websocket_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ func CreateWebSocketConnectionConfig(connConfig *MediationContainerConfig) (*Web
}
wsConfig := WebSocketConnectionConfig(*connConfig)
wsConfig.TurboServer = serverURL.String()
// If the path specified for the platform use it instead of assuming the default /vmturbo/remoteMediation
if serverURL.Path != "" && serverURL.Path != "/" {
wsConfig.WebSocketPath = ""
}
return &wsConfig, nil
}

Expand Down

0 comments on commit 3fcc1ac

Please sign in to comment.