title: How to use the EventStore Embedded Client?
body: <p>There seem to be no docs regarding how to set up, run, and connect to an Embedded EventStore client using the EventStore.Client.Embedded nuget package. With the following code:</p>
  
  <pre><code>ClusterVNode node = EmbeddedVNodeBuilder
      .AsSingleNode()
      .RunInMemory()
      .OnDefaultEndpoints()
      .Build();
  
  var connection = EmbeddedEventStoreConnection.Create(node);
  await connection.ConnectAsync();
  var sampleEventData = new EventData(Guid.NewGuid(), "myTestEvent", false, new byte[] { 6, 10, 15 }, null);
  WriteResult writeResult = await connection.AppendToStreamAsync("sampleStream, ExpectedVersion.NoStream, sampleEventData);
  </code></pre>
  
  <p>Everything seems to work fine up until the <code>AppendToStreamAsync</code> line, which throws the following exception:</p>
  
  <blockquote>
    <p>Expected response of EventStore.Core.Messages.ClientMessage+WriteEventsCompleted, received EventStore.Core.Messages.ClientMessage+NotHandled instead.</p>
  </blockquote>
  
  <p>What part of the magic incantation is missing to get around this exception?</p>