The wiki sample works great.
Please install the SignalR.Hosting.Self package using NuGet (package manager console)
SignalR.Hosting.Self installation package
Server lives in the SignalR.Hosting.Self namespace.
Example
Console application
using System; namespace MyConsoleApplication { static class Program { static void Main(string[] args) { string url = "http://localhost:8081/"; var server = new SignalR.Hosting.Self.Server(url);
Asp.NET/Javascript
<script type="text/javascript" src="Scripts/jquery-1.7.2.js"></script> <script src="/Scripts/jquery.signalR.js" type="text/javascript"></script> <script src="http://localhost:8081/signalr"></script> <script type="text/javascript"> $(function () { </script>
Leave a comment if you have additional answers
source share