Hello,
Assuming the latest version, to enforce a long-polling connection you can set the ForcedTransport property of the connectionOptions object.
Otherwise, please specify the SDK library version in use.