You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys,
I created a jar and turned it into an exe, starting when my PC boots. This is my connection code:
Client api = new ClientApi();
api.addClientConnectionListener(new ClientConnectionListener() {
@Override
public void onClientConnected() {
infoLog("Client connected");
connectSocket();
}
@Override
public void onClientDisconnected() {
infoLog("Client disconnected");
socket.close();
}
});
This code is called when the program starts. It should get when the client is available and connect with the websocket, if it fails first time then it should retry 4 times to connect the socket with a delay of 30 seconds after each try. Sometimes it does work sometimes it does not, do anybody maybe knows why? Is it a problem with the exe or inside the code?
The text was updated successfully, but these errors were encountered:
Hey guys,
I created a jar and turned it into an exe, starting when my PC boots. This is my connection code:
This code is called when the program starts. It should get when the client is available and connect with the websocket, if it fails first time then it should retry 4 times to connect the socket with a delay of 30 seconds after each try. Sometimes it does work sometimes it does not, do anybody maybe knows why? Is it a problem with the exe or inside the code?
The text was updated successfully, but these errors were encountered: