// xxx need button(s) to kill old clients
+// and/or cause players to release grabs
// ? need expiry of old clients? limit of client count?
#![feature(proc_macro_hygiene, decl_macro)]
let gen = Generation(gen);
let iad = ctoken.i;
let content = sse::content(iad, gen)?;
- let content = response::Stream::chunked(content, 4096 /* xxx */);
+ let content = response::Stream::chunked(content, 4096);
const CTYPE : &str = "text/event-stream; charset=utf-8";
let ctype = ContentType::parse_flexible(CTYPE).unwrap();
// xxx set CORS allowed header
#[get("/_/<leaf>")]
fn resource(leaf : CheckedResourceLeaf) -> io::Result<NamedFile> {
- let template_dir = "templates"; // xxx
+ let template_dir = "templates";
NamedFile::open(format!("{}/{}", template_dir, leaf.safe))
}
pos : self.pos,
held : self.held,
svg : self.make_defs(pri),
- // xxx want all piece's stuff in the same def
}
}
pub fn describe_html(&self, pri : &PieceRenderInstructions) -> String {
- // xxx want to be able to hide things
self.p.describe_html(Some(pri.face))
}
}