title: SignalR Core with Redis Pub\Sub and console application
body: <p>I am having Asp.Net Core 2.1 with SignalR Core 1.0.1.</p>
  
  <p>I have created chat application that is described here:
  <a href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-2.1&amp;tabs=visual-studio" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-2.1&amp;tabs=visual-studio</a></p>
  
  <p>Also have configured SignalR to use Redis using</p>
  
  <pre><code>services.AddSignalR().AddRedis(Configuration["ConnectionStrings:Redis"]);
  </code></pre>
  
  <p>Having running Redis server up with redis-cli monitor I can see the following commands coming:</p>
  
  <blockquote>
    <p>1530086417.413730 [0 127.0.0.1:57436] "SUBSCRIBE" "SignalRCore.Hubs.ChatHub:connection:VAIbFqtNyPVaod18jmm_Aw"</p>
    
    <p>1530086428.181854 [0 127.0.0.1:57435] "PUBLISH" "SignalRCore.Hubs.ChatHub:all" "\x92\x90\x81\xa4json\xc4W{\"type\":1,\"target\":\"ReceiveMessage\",\"arguments\":[{\"user\":\"user\",\"message\":\"message\"}]}\x1e"</p>
  </blockquote>
  
  <p>Everything works fine till the time when I would like to push some message from another console application. 
  In that application I am using ServiceStack.Redis and the code is the following:</p>
  
  <pre><code>var redisManager = new RedisManagerPool(configuration["ConnectionStrings:Redis"]);
  using (var client = redisManager.GetClient())
  {
      client.PublishMessage("SignalRCore.Hubs.ChatHub:all", "{\"type\":1,\"target\":\"ReceiveMessage\",\"arguments\":[{\"user\":\"FromConsole\",\"message\":\"Message\"}]");
  }
  </code></pre>
  
  <p>The messages are not handled by browser. I assume the case is in this additional information that is used for SignalR:</p>
  
  <blockquote>
    <p>"\x92\x90\x81\xa4json\xc4W{...}\x1e"</p>
  </blockquote>
  
  <p>Related monitor record:</p>
  
  <blockquote>
    <p>1530087843.512083 [0 127.0.0.1:49480] "PUBLISH" "SignalRCore.Hubs.ChatHub:all" "{\"type\":1,\"target\":\"ReceiveMessage\",\"arguments\":[{\"user\":\"FromConsole\",\"message\":\"Message\"}]"</p>
  </blockquote>
  
  <p>Any ideas how can I specify this additional data for publish?
  Probably I should use something more suitable for my case instead of ServiceStack.Redis</p>