projects
/
henge
/
kiak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
v0.0.1
[henge/kiak.git]
/
host.js
diff --git
a/host.js
b/host.js
index
2700506
..
939c8f2
100644
(file)
--- a/
host.js
+++ b/
host.js
@@
-2,9
+2,9
@@
const body = document.createElement('body')
const root = document.createElement('div')
document.title = "Strapp.io Host"
if ("WebSocket" in window) {
const root = document.createElement('div')
document.title = "Strapp.io Host"
if ("WebSocket" in window) {
- const wsock = new WebSocket("wss://" +
_strapp_
host + ":" + _strapp_port)
+ const wsock = new WebSocket("wss://" +
window.location.
host + ":" + _strapp_port)
wsock.onopen = () => {
wsock.onopen = () => {
- console.log("Strapped to wss://" +
_strapp_
host + ":" + _strapp_port)
+ console.log("Strapped to wss://" +
window.location.
host + ":" + _strapp_port)
}
wsock.onmessage = (evt) => {
console.log("Incoming connection from " + evt.data)
}
wsock.onmessage = (evt) => {
console.log("Incoming connection from " + evt.data)