encode chunks and broadcast them on join