Are you recording both audio and video?
On the server you can use mkvmerge from MKVToolNix to merge multiple WebM files to a single file, or set duration of the combined results from dataavailable with --enable-durations option, without using ts-ebml client side.