Verified Commit 8519fca7 authored by Aral Balkan's avatar Aral Balkan
Browse files

Disable client-side WebSocket as it fails with SSR

parent b3969619
......@@ -10,16 +10,17 @@ function view (state, emit) {
const bodyClass = css('./styles/body.css')
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}`)
}
// TODO: Resolve: This conflicts with SSR.
// 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}`)
// }
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