add serveonce to be able to use a different event loop
send lines to and from a websocket