live-server: expand on the websocket handling a little.