J
Jay
I have a client app sending messages over the socket on a certain port.
In the client app: I do this for every message I need to send:
1. Create a socket and connect.
2. Send message
3. Close socket.
The Listener requires that the client keep the socket connected while
sending messages..which is every 20-30 seconds.
My question is: Can I keep the connection open for the whole day? Connect
once in the morning - close at the end of the day?
Is it just a matter of moving the code around to achive this?
Like, create the socket at the application start. Then "send message"
multiple times during the day. At the end of the day, when the app closes,
"close socket"?
Are there going to be any issues with this?
In the client app: I do this for every message I need to send:
1. Create a socket and connect.
2. Send message
3. Close socket.
The Listener requires that the client keep the socket connected while
sending messages..which is every 20-30 seconds.
My question is: Can I keep the connection open for the whole day? Connect
once in the morning - close at the end of the day?
Is it just a matter of moving the code around to achive this?
Like, create the socket at the application start. Then "send message"
multiple times during the day. At the end of the day, when the app closes,
"close socket"?
Are there going to be any issues with this?