simple-web-game/static/js/common.js

6 lines
125 B
JavaScript

function wsuri(path) {
var loc = window.location;
new_uri = "ws://" + loc.host + "/ws" + path;
return new_uri;
}