Sending POST request in longpolling fashion to the broker.
Launching another thread that is looped every couple of seconds to send a long poll request to the server with a custom OkHttp time out.
Launching another thread that is looped every couple of seconds to send a long poll request to the server with a custom OkHttp time out.