Commit f03a7ab1 authored by Bosko Petreski's avatar Bosko Petreski Committed by Bosko Petreski

#36 - force to use websockets

parent 77fd0ac6
......@@ -131,7 +131,8 @@
self.trackingConnectionString = trackingConnectionString;
NSURL *url = [NSURL URLWithString:self.trackingConnectionString];
self.manager = [[SocketManager alloc] initWithSocketURL:url config:@{@"log": @(PrimedTracker.sharedInstance.debug)}];
self.manager = [[SocketManager alloc] initWithSocketURL:url config:@{@"forceWebsockets":@YES,
@"log": @(PrimedTracker.sharedInstance.debug)}];
self.socket = [[SocketIOClient alloc] initWithManager:self.manager nsp:@"/v1"];
[self.manager setNsps:@{@"/v1":self.socket}];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment