Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
steffenvoigt committed Oct 16, 2016
1 parent ed91949 commit 0a5d15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion home.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
});

if (window["WebSocket"]) {
conn = new WebSocket("ws://{{$}}/ws");
conn = new WebSocket("wss://{{$}}/ws");
conn.onclose = function(evt) {
appendLog($("<div><b>Connection closed.</b></div>"))
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const homeTemplateHtml = `<!DOCTYPE html>
});
if (window["WebSocket"]) {
conn = new WebSocket("ws://{{$}}/ws");
conn = new WebSocket("wss://{{$}}/ws");
conn.onclose = function(evt) {
appendLog($("<div><b>Connection closed.</b></div>"))
}
Expand Down

1 comment on commit 0a5d15d

@chilipeppr
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change won't work because if you leave SPJS only running in non-SSL mode these changes would break the usage of the app. You'd have to get way more sophisticated about deciding whether to use SSL when/if available based on if the user specified it on the command line.

Please sign in to comment.