示例#1
0
 public RedHttpServerSubscriptionApi(Red.RedHttpServer server, int mustReceiveHeartbeatMillis = 5000, string path = "/ws", Func <string, string, object> getAuthToken = null, Func <string, string, Task <object> > getAuthTokenAsync = null, Func <object, string> getId = null, Func <object, Task <string> > getIdAsync = null) : base(mustReceiveHeartbeatMillis, getAuthToken, getAuthTokenAsync, getId, getIdAsync)
 {
     if (EnvironmentX.IsRunningOnMono())
     {
         throw new Exception("Unfortunately, RedHttpServer does not support WebSockets on Mono");
     }
     this.server = server;
     this.path   = path;
 }
 public RedHttpServerWebApi(Red.RedHttpServer server)
 {
     this.server = server;
 }