If set use a secure connection, note TCP only, do not use for secure websockets(wss).
bool secure = false;