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

6 lines
125 B
JavaScript
Raw Normal View History

2013-06-16 00:00:11 -07:00
function wsuri(path) {
var loc = window.location;
new_uri = "ws://" + loc.host + "/ws" + path;
return new_uri;
}