Last active
January 26, 2019 14:43
-
-
Save sakapon/732b69c502e629f9386da1f29e67310f to your computer and use it in GitHub Desktop.
DeviceSignal/Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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