B4J Question WebSocket client error

DarkoT

Active Member
Licensed User
I need help.
In the B4J environment (desktop Windows), I created a WebSocket server and a WebSocket client application. If I compile the server in release mode, it works, and the client application also works when run from the B4J IDE (debug mode).
However, if I compile the client app in release mode and run it in the Windows environment, the system reports an error — on the server side, I get the following: onWebSocketError: null.
Does anyone have any idea what could be wrong? Alternatively, how can I catch the error in release mode (everything works fine in debug mode)?

Br, DaT
 
Solution
version 1.13 (internal)

It's really strange situation... In debug mode - everthing works perfect's, after I create windows exe, system will not connect (on same machine) to ws.. Really have no idea what is wrong, I made research over all net... :(
Now I got you what you mean release mode is , you mean that is build standalone package.
You need to add this PackagerProperty for standalone
B4X:
#PackagerProperty: AdditionalModuleInfoString = uses org.eclipse.jetty.websocket.common.RemoteEndpointFactory;

teddybear

Well-Known Member
Licensed User
Here it works, which version of jwebsocketclient are you using?
 
Upvote 0

DarkoT

Active Member
Licensed User
Here it works, which version of jwebsocketclient are you using?
version 1.13 (internal)

It's really strange situation... In debug mode - everthing works perfect's, after I create windows exe, system will not connect (on same machine) to ws.. Really have no idea what is wrong, I made research over all net... :(
 
Upvote 0

Chris2

Active Member
Licensed User
Longtime User
Upvote 0

teddybear

Well-Known Member
Licensed User
version 1.13 (internal)

It's really strange situation... In debug mode - everthing works perfect's, after I create windows exe, system will not connect (on same machine) to ws.. Really have no idea what is wrong, I made research over all net... :(
Now I got you what you mean release mode is , you mean that is build standalone package.
You need to add this PackagerProperty for standalone
B4X:
#PackagerProperty: AdditionalModuleInfoString = uses org.eclipse.jetty.websocket.common.RemoteEndpointFactory;
 
Last edited:
Upvote 1
Solution

DarkoT

Active Member
Licensed User
Now I got you what you mean release mode is , you mean that is build standalone package.
You need to add this PackagerProperty for standalone
B4X:
#PackagerProperty: AdditionalModuleInfoString = uses org.eclipse.jetty.websocket.common.RemoteEndpointFactory;
Thank you for your help... That's the solution... I added an extra line with #PackageProperty to the client, and now the system works... Thanks for the help and best regards to the whole community... You guys rock :) ;)
 
Upvote 0
Top