Skip to content

Commit

Permalink
fix endpoint name
Browse files Browse the repository at this point in the history
  • Loading branch information
ww24 committed Oct 22, 2015
1 parent 25502a7 commit 7007a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/sse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var url = "http://localhost:3000/sse";
var url = "http://" + location.host + "/sse";

var es = new EventSource(url);
es.addEventListener("open", function (e) {
Expand Down
2 changes: 1 addition & 1 deletion static/ws.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var url = "ws://localhost:3000/subscribe";
var url = "ws://" + location.host + "/subscribe";

var ws = new WebSocket(url);
ws.addEventListener("open", function (e) {
Expand Down

0 comments on commit 7007a0d

Please sign in to comment.