pub fn write_exchange(bytes: &[u8])
write bytes at the start of the exchange buffer. the buffer never shrinks: javascript keeps a view of its whole length and writes the next request anywhere in it