Fix race condition between connecting to SUB sock and sending commands
Fix race condition between connecting to SUB sock and sending commands

betweenlines/intecture-api,betweenlines/intecture-api,petehayes102/api,intecture/api