Pectin works great as does a little flour mixed with water and heated until it gets sticky (don’t burn it). Many manufacturers use one of the two methods above.