added optional onFormatError if non multiplex compliant data is received at the other end
Added err to onStream cb