well, the on(data) function gets a binary buffer