WIP: Ws client code

Add newline before this.