B4J Question WaitFor in Websocket


Well-Known Member
Licensed User
Longtime User
Is it possible that the following function from the WaitFor Tutorial does not work anymore for 2 days?
The JobDone event never raise.

Private Sub WebSocket_Connected (WebSocket1 As WebSocket)
   ws = WebSocket1
End Sub

Sub Download
   Dim j As HttpJob
   j.Initialize("", Me)
   Wait For (j) JobDone(j As HttpJob)
   If j.Success Then
   End If
End Sub

I also see this problem with my big project. Yesterday a customer said, a long time proved function doesnt work anymore after an update (This update had nothing to do with the websocket).
Today i saw in BJ4 that my jOkHttpUtils2_NONUI (Version: 2.62) changed to:
jOkHttpUtils2_NONUI (Version: 2.80) - DEPRECATED - use jOkHttpUtils2 instead
I don't know how long it's been, but I just noticed it today.

Anyway, without touching any related code to download things in websocket module, it doesnt work anymore since yesterday.
I dont think there is any Autoupdates in B4J?


Well-Known Member
Licensed User
Longtime User
Got it. i compiled the "faulty" version with a different Computer.
It seems to relate to the B4J Version.
My code works with 6.80 but doesnt work with 7.00
Is it a Bug?
Last edited:
Upvote 0