Skip to content

Instantly share code, notes, and snippets.

@papeMK2
Created May 13, 2014 12:13
Show Gist options
  • Save papeMK2/fd99d538e38fc1d3ce83 to your computer and use it in GitHub Desktop.
Save papeMK2/fd99d538e38fc1d3ce83 to your computer and use it in GitHub Desktop.
using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartupAttribute(typeof(SignalRServerSample.Startup))]
namespace SignalRServerSample.Hubs
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
[HubName("Hubs")]
public class SampleHub : Hub
{
public void Hello(string str)
{
Clients.All.HelloWorld(str);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment