Skip to content

Instantly share code, notes, and snippets.

@sakapon
Last active January 26, 2019 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakapon/732b69c502e629f9386da1f29e67310f to your computer and use it in GitHub Desktop.
Save sakapon/732b69c502e629f9386da1f29e67310f to your computer and use it in GitHub Desktop.
DeviceSignal/Server
using System;
using Microsoft.AspNet.SignalR;
namespace DeviceSyncWeb
{
public class SensorHub : Hub
{
public void UpdateOrientation(double alpha, double beta, double gamma)
{
Clients.Others.NotifyOrientation(alpha, beta, gamma);
}
}
}
using System;
using Owin;
namespace DeviceSyncWeb
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment