Previously, a new socket was being opened and closed on every call. Now, there is one socket per client which is used continuously until the connection closes.