Long polling with NSURLConnection

前端 未结 5 1475
天涯浪人
天涯浪人 2020-12-31 06:46

I\'m working on an iPhone application which will use long-polling to send event notifications from the server to the client over HTTP. After opening a connection on the ser

5条回答
  •  盖世英雄少女心
    2020-12-31 07:11

    I ran into this today. I wrote my own class to handle this, which mimics the basic functionality of NSURLConnection.

    http://github.com/nall/SZUtilities/blob/master/SZURLConnection.h

提交回复
热议问题