RavenDB-2174: Some code refactoring around WebSocketsTransport