Verified Commit 469540f8 authored by Aral Balkan's avatar Aral Balkan
Browse files

Use no-choo-ssr branch of web-compiler; re-enable client WebSocket

parent f98b14e0
......@@ -52,8 +52,8 @@
}
},
"@hypha/web-compiler": {
"version": "git+https://aral@source.ind.ie/hypha/tools/web-compiler#ebab69c36a1317527c0d111174452616acadf096",
"from": "git+https://aral@source.ind.ie/hypha/tools/web-compiler",
"version": "git+https://aral@source.ind.ie/hypha/tools/web-compiler#09430d3b7e7b9713f2458a880b65368729a1cdad",
"from": "git+https://aral@source.ind.ie/hypha/tools/web-compiler#no-choo-ssr",
"dev": true,
"requires": {
"@choojs/findup": "^0.2.0",
......
......@@ -25,7 +25,7 @@
"sheetify": "^7.3.3"
},
"devDependencies": {
"@hypha/web-compiler": "git+https://aral@source.ind.ie/hypha/tools/web-compiler",
"@hypha/web-compiler": "git+https://aral@source.ind.ie/hypha/tools/web-compiler#no-choo-ssr",
"choo-devtools": "^2.5.1",
"choo-scaffold": "^1.2.0",
"dependency-check": "^3.3.0",
......
......@@ -10,17 +10,16 @@ function view (state, emit) {
const bodyClass = css('./styles/body.css')
// TODO: Resolve: This conflicts with SSR.
// const socket = new WebSocket('wss://localhost/echo')
// socket.onopen = event => {
// console.log('Socket open.')
// socket.send('Hello, there!')
// }
const socket = new WebSocket('wss://localhost/echo')
socket.onopen = event => {
console.log('Socket open.')
socket.send('Hello, there!')
}
socket.onmessage = event => {
console.log(`Received: ${event.data}`)
}
// socket.onmessage = event => {
// console.log(`Received: ${event.data}`)
// }
return html`
<body class='${bodyClass}'>
<h1>Hypha</h1>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment