21

There are a few examples of NancyFX being integrated with SignalR, for example

Since I am just starting out I want a simple, well worked canonical example that I can work from. A nancy version of the chat example from Microsoft would do fine.

Thanks

Community
  • 1
  • 1
biofractal
  • 18,963
  • 12
  • 70
  • 116

1 Answers1

33

I am going to answer my own question.

I put together a little canonical-chat example based on the Microsoft walkthrough. You can get it from GitHub:


Update

This example has been updated to use the latest SignalR and NancyFX Assemblies as of February 2015.


ScreenShot

<code>enter image description here</code>

biofractal
  • 18,963
  • 12
  • 70
  • 116
  • 7
    sure it took you long to create example :) – Goran Obradovic Feb 08 '14 at 16:36
  • I wish this did't use coffee, just plain javascript. – Donny V. Feb 10 '15 at 05:00
  • @DonnyV. If you struggle with the coffeescript syntax you can always replace the ceremony using [js2coffee](http://js2.coffee/). – biofractal Feb 10 '15 at 08:26
  • 2
    @biofractal I just realized it uses Microsoft.Owin. I'm looking for something that can be self hosted in Nancy and run on Mono. You don't happened to know of any examples do you? – Donny V. Feb 11 '15 at 02:11
  • @biofractal I am new to nancy and checked your code. There is no `UseNancy` in the `Startup` file. Where do you exactly add nancy to pipeline. All other examples I saw seems to use the `UseNancy` command. – Cemre Mengü Oct 27 '15 at 10:49
  • But you don't explain what you did? Did you create it with Nancy template, or start from a bare website? Which NUGET's did you add? What special lines of code did you have to change for Nancy / for SignalR so they both work together? – pashute Jan 13 '16 at 13:48