WIP: Ws client code

We have so many things called 'sync`, I wonder if we should consider a better name here.