// // SocketServiceHandler.h // OneCable // // Created by KaRam Kim on 2017. 2. 17.. // Copyright © 2017년 ntels. All rights reserved. // #import @protocol SocketServiceDelegate @optional - (void) socketConnectComplete; - (void) didReceiveMessage:(id)message; @end @interface SocketServiceHandler : NSObject @property (nonatomic, assign) id delegate; @property (readonly, nonatomic) BOOL isConnected; @property (nonatomic, strong) NSString* strSocketURL; + (id)sharedManager; - (void) open; - (void) close; - (void) sendData:(NSDictionary *)data; - (void) initWithDelegate:(id) delegate; @end