My SDK app is having issues at times with using the socket.
I noticed that the included EXERCISE fitbit app when you select an exercise like RUN, and begin it will say "Connecting..." and keep trying and after a variable amount of time say "CONNECT.
I have similar functional needs. Does anyone have information about what the Exercise app does that forces the CONNECT? Sometimes this takes a second other times a minute, but it is fairly reliable.