forked from fishrod-interactive/sails-io.objective-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSocketIO+SailsIO.h
25 lines (17 loc) · 881 Bytes
/
SocketIO+SailsIO.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
//
// SocketIO+SailsIO.h
// Socket.IO
//
// Created by Gavin Williams on 04/03/2014.
// Copyright (c) 2014 Fishrod Interactive. All rights reserved.
//
#import <Socket.IO/SocketIO.h>
@interface SocketIO (SailsIO)
#pragma mark - Request convenience methods
- (void) get:(NSString *) url withData: (NSDictionary *) data callback:(void (^)(id response)) callback;
- (void) post:(NSString *) url withData: (NSDictionary *) data callback:(void (^)(id response)) callback;
- (void) put:(NSString *) url withData:(NSDictionary *) data callback:(void (^)(id response)) callback;
- (void) delete:(NSString *) url withData:(NSDictionary *) data callback:(void (^)(id response)) callback;
#pragma mark - Method that makes the actual request
- (void) request:(NSString *) url withData:(NSDictionary *) data callback:(void (^)(id response)) callback method:(NSString *)method;
@end