Send the test message just once

parent 0f986461
......@@ -3,9 +3,7 @@ require('./to-include.js')
const socket = new WebSocket('wss://localhost/echo')
socket.onopen = event => {
console.log('Socket open.')
setInterval(() => {
socket.send('Hello, there!')
}, 1000)
socket.send('Hello, there!')
}
socket.onmessage = event => {
......
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