Partially working - connection established (mostly). Text field is typable (mostly). WS comms fails a lot :(
It helps if you use the correct keys in the destructure. Doh!
Figured out event format
Added some debugging for receive loop. Data never gets to us.
Still not getting sent messages back in the browser :(