B4J Question using Websocketclient in jserver app (non-ui)

tkabakci76

New Member
Licensed User
Im trying to Initialize websocketclient in jserver app. websocketclient will connect to outer websocket server and starts to listen after jserver started.
Now Im getting an error while initialing.
How can I do this ? is it possible to run jserver and websocket clients in same app ?
 

tkabakci76

New Member
Licensed User
Please post the error message.
Im trying to Initialize websocketclient at Main/AppStart Sub. Same Sub with Server Initialization. or after any command.

Main error is "Program terminated (StartMessageLoop was not called)."

What should the initilazation order be? where should i initilaze websocketclient ? Where and how can I get websocketclient events ?

Thank you very much.
 
Upvote 0

Chris2

Active Member
Licensed User
It will be helpful if you post your AppStart code.

I would guess that either
a) as the message says, you are not calling StartMessageLoop.
See this

Or
b) you have a 'Wait For....' in the sub, before StartMessageLoop.
See this
 
Upvote 0
Top