Search found 30 matches: sse

Return to advanced search

Re: SSE example

What aspect do you mean?
by ssbbs
Sat May 27, 2023 2:18 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello sbbs,
Thank you. I will try.

What advantages do you have if HTML is the default setup?
Best regards,
Otto
by Otto
Fri May 26, 2023 5:36 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

you need to modify the code I mentioned in the previous letter. Because the mod_harbour I used has been modified. It is different from the version you are using. my code style: <?prg::?><html>::</html><?prg::?>  you must modify to: function main()local .....:   TEMPLA...
by ssbbs
Fri May 26, 2023 1:58 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello ssbbs, I can't remember, do I have to change something in mod harbour setup that <?prg LOCAL cMethod := AP_Method() ?> is working? Thank you and best regards, Otto https://forums.fivetechsupport.com/viewtopic.php?f=45&t=41883&p=251070&hilit=html&sid=803baefa45914aa3e82239...
by Otto
Fri May 26, 2023 12:27 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello ssbbs, With the prg version I get following error: Error: Unterminated string '' called from: __PP_PROCESS, line: 0 called from: ..\source\exec.prg, EXECUTE, line: 64 Source: 0062: a: 1 0063: ,b: 2 0064 => }; 0065: let param=url+'?func=9&data='+JSON.stringify(data); 0066: alert('Go...'...
by ssbbs
Fri May 26, 2023 6:58 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello ssbbs, thank you. With the prg version I get following error: Error: Unterminated string '' called from: __PP_PROCESS, line: 0 called from: ..\source\exec.prg, EXECUTE, line: 64 Source: 0062: a: 1 0063: ,b: 2 0064 => }; 0065: let param=url+'?func=9&data='+JSON.stringify(data); 0066: ale...
by Otto
Fri May 26, 2023 6:22 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

... ? $_GET["func"] :  -1 ));if($func == 9){  // hData := hb_jsondecode(hParam, 'data')  // 送出 SSE 專用表頭  header('Content-Type: text/event-stream');  header('Cache-Control: no-cache');  //  $hRes->step=0;  $hRes->total=100;  ...
by ssbbs
Fri May 26, 2023 4:29 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello ssbbs,
I understand.
Can you please post the php code, too.

Best regards,
Otto
by Otto
Thu May 25, 2023 3:59 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

No! What my mean is: the time it takes for the client to receive a .prg file from the host!!

Receiving index.prg file from host takes 262ms.

Image
by ssbbs
Thu May 25, 2023 2:49 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

... important to appreciate the functionality of the server-side program. In my case, since I am using DBF, I require mod Harbour. Currently, without SSE (Server-Sent Events), I utilize `setInterval()`, which is similar to `timer()` in Harbour. Then, I use `fetch` to check if there is any new data ...
by Otto
Thu May 25, 2023 12:18 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Now there is one more important question!

It takes 2xxms to load a .prg each time, but only 5xms for php with the same function.
by ssbbs
Thu May 25, 2023 10:32 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello ssbbs, Thank you very much for that. I will study and test your code. I'm glad to hear that you're using mod_harbour APACHE and that it's working fine for you. I want to remember that this question has been bothering me a lot: The way mod_harbour is implemented is by inserting HTML into the PR...
by Otto
Thu May 25, 2023 8:27 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello, Thank you. Do you have a sample code? I am working on a chat application. I didn't know about Server-Sent Events (SSE) until you mentioned it here. SSE is a technology that enables real-time communication between a web browser and a server. It allows the server to send events ...
by ssbbs
Thu May 25, 2023 4:24 am
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Hello, Thank you. Do you have a sample code? I am working on a chat application. I didn't know about Server-Sent Events (SSE) until you mentioned it here. SSE is a technology that enables real-time communication between a web browser and a server. It allows the server to send events ...
by Otto
Wed May 24, 2023 5:46 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930

Re: SSE example

Otto wrote:Hello,

May I ask if the method "printData()" in the class "TPER" is from your program? Do you run it on Mod Harbour?

Best regards,
Otto


Yes!! I'm run on mod_harbour!!

The TPER is a CLASS I wrote for mod_harbour implementation in the backend.
by ssbbs
Wed May 24, 2023 3:28 pm
 
Forum: mod_harbour
Topic: SSE example
Replies: 19
Views: 4930
Next

Return to advanced search

cron