forked from pkyeck/socket.IO-objc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SocketIOTransportXHR.h
39 lines (34 loc) · 902 Bytes
/
SocketIOTransportXHR.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// SocketIOTransportXHR.h
// v0.4.1 ARC
//
// based on
// socketio-cocoa https://github.com/fpotter/socketio-cocoa
// by Fred Potter <[email protected]>
//
// using
// https://github.com/square/SocketRocket
// https://github.com/stig/json-framework/
//
// reusing some parts of
// /socket.io/socket.io.js
//
// Created by Philipp Kyeck http://beta-interactive.de
//
// Updated by
// samlown https://github.com/samlown
// kayleg https://github.com/kayleg
// taiyangc https://github.com/taiyangc
//
#import <Foundation/Foundation.h>
#import "SocketIOTransport.h"
@interface SocketIOTransportXHR : NSObject <SocketIOTransport, NSURLConnectionDelegate>
{
NSString *_url;
NSMutableData *_data;
NSMutableDictionary *_polls;
BOOL _isClosed;
}
@property (nonatomic, weak) id <SocketIOTransportDelegate> delegate;
@property (nonatomic) BOOL isClosed;
@end