Skip to content

Commit

Permalink
issue #1. stupid error in example
Browse files Browse the repository at this point in the history
  • Loading branch information
vasily-popov committed Oct 12, 2017
1 parent bf5529f commit 0740f86
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions VPSocketIO/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,26 @@ - (IBAction)disconnect:(id)sender {

}

-(void)socketExample{
NSString *urlString = @"http://localhost:8900";

-(void)socketExample
{
ClientSocketLogger*logger = [ClientSocketLogger new];

NSString *urlString = @"http://localhost:8900";
NSDictionary *connectParams = @{@"key":@"value"};
socket = [[VPSocketIOClient alloc] init:[NSURL URLWithString:urlString]
withConfig:@{@"log": @YES
withConfig:@{@"log": @YES,
@"forcePolling": @NO,
@"secure": @YES,
@"forceNew":@YES,
@"forceWebsockets":@YES,
@"selfSigned":@YES,
@"reconnectWait":@1000,
@"nsp":@"/rooms",
@"connectParams":connectParams,
@"logger":logger
}];





[socket on:kSocketEventConnect callback:^(NSArray *array, VPSocketAckEmitter *emitter) {
NSLog(@"!!!!socket connected");
}];
Expand Down

0 comments on commit 0740f86

Please sign in to comment.