B4J Tutorial Pocketbase CRUD REST API & SSE with PostMan and then HttpUtils

amorosik

Expert
Licensed User
We may not yet fully realize the implications of this technology
But even at first sight it is really very effective
Many thanks for generously sharing your technical skills
 

giannimaione

Well-Known Member
Licensed User
Longtime User
hello,

your examples attached work fine,

i click on "Connect2SSE" and "Subscribe 2 SSE",
and after update / create (from browser admin) a record, app response with:
B4X:
Private Sub pb_SSE (Action As String, Response As Map)
    Log("pb_SSE")
    Log(Action)
    Log(Response)
End Sub
OK! PERFECT!

but after ~ 60 second it will response
B4X:
Private Sub pb_Disconnected (Status As Boolean)
    Log("pb_Disconnected")
    txtOutput.Text = $"Disconnected: ${Status}"$
End Sub

from documentation of pocketbase

I get disconnected after 60 seconds, but not after 5 minutes
why?
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…