WebSocket impl extracted into abstract class, Updates can now be applied to a neighbor document as well.