Read input via websocket connection