public JsonCprServer() { _cometServer = new CometServer(); _cometServer.AddRequestPath("/"); _jsonRpcServer = new JsonRpcServer(); _jsonRpcServer.RegisterMethods(this, "/"); _clientPaths = new Set<string>(); _pendingCalls = new Dictionary<string, JsonCprCallback>(); }
public CometRequestHandler(CometServer cometServer, TcpClient context) { CometServer = cometServer; _context = context; _stream = context.GetStream(); }