I am getting an error while compiling.
procedure TUniQZ.Connect;
begin
JSCallGlobal ('qz.websocket.connect', [], 'tmp');
JSCallGlobal ('tmp.catch', [JSFunction ('e', 'ajaxRequest (' # 1 ',' 'onError ", {error: e});')]);
JSCallGlobal ('tmp.then', [JSFunction ('', 'ajaxRequest (' # 1 ', "onConnected");')]);
end;
JSCallGlobal is waiting for an object at the end