use arraybuffer.slice to parse udp messages