I create a websocket with
let websocket = new WebSocket(host); and assign its callbacks onopen, onmessage, onerror, onclose.
let websocket = new WebSocket(host);
I can make a conne