Skip to content

Commit

Permalink
Support of Websocket over https (wss protocol)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgenon committed Jun 20, 2023
1 parent e0de0bd commit a8fafd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private fun defineServerConfig(): ServerConfig {
val webPackMode = js("ENV_WEBPACK_MODE")
console.log("Webpack mode is $webPackMode")
return if ("production".equals(webPackMode as? String, ignoreCase = true)) {
val wsProtocol = if("https" == window.location.protocol){
val wsProtocol = if(window.location.protocol.startsWith("https",true)){
"wss://"
} else {
"ws://"
Expand Down

0 comments on commit a8fafd9

Please sign in to comment.