diff --git a/Example/Phoenix-ObjC/PhoenixViewController.m b/Example/Phoenix-ObjC/PhoenixViewController.m index 45a6e30..6f51929 100644 --- a/Example/Phoenix-ObjC/PhoenixViewController.m +++ b/Example/Phoenix-ObjC/PhoenixViewController.m @@ -22,18 +22,11 @@ @interface PhoenixViewController () @implementation PhoenixViewController -//30s -//sendHeartbeat: -> -//@send(channel: "phoenix", topic: "conn", event: "heartbeat", message: {}) - -- (void)viewDidLoad -{ +- (void)viewDidLoad { [super viewDidLoad]; - NSURL *url = [NSURL URLWithString:@"ws://10.0.0.12:4000/ws"]; - // Opens connection to Phoenix - _phoenix = [[Phoenix alloc] initWithURL:url]; + _phoenix = [[Phoenix alloc] initWithURL:[NSURL URLWithString:@"ws://10.0.0.7:4000/ws"]]; [_phoenix setDelegate:self]; [_phoenix open]; @@ -44,8 +37,8 @@ - (void)viewDidLoad }]; [_channel join]; -// _count = 0; -// _timer = [NSTimer scheduledTimerWithTimeInterval:5.0f target:self selector:@selector(testSend) userInfo:nil repeats:YES]; + _count = 0; + _timer = [NSTimer scheduledTimerWithTimeInterval:5.0f target:self selector:@selector(testSend) userInfo:nil repeats:YES]; } #pragma mark - PhoenixDelegate diff --git a/Phoenix-ObjC.podspec b/Phoenix-ObjC.podspec index ae56bbf..152f11c 100644 --- a/Phoenix-ObjC.podspec +++ b/Phoenix-ObjC.podspec @@ -10,19 +10,14 @@ Pod::Spec.new do |s| s.name = "Phoenix-ObjC" s.version = "0.1.0" - s.summary = "A short description of Phoenix-ObjC." + s.summary = "Objective-C client for Phoenix." s.description = <<-DESC - An optional longer description of Phoenix-ObjC - - * Markdown format. - * Don't worry about the indent, we strip it! + Objective-C client for Phoenix Framework DESC - s.homepage = "https://github.com//Phoenix-ObjC" - # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" + s.homepage = "https://github.com/RokkinCat/phoenix-objc" s.license = 'MIT' - s.author = { "rokkincat" => "josh@rokkincat.com" } - s.source = { :git => "https://github.com//Phoenix-ObjC.git", :tag => s.version.to_s } - # s.social_media_url = 'https://twitter.com/' + s.author = { "Josh Holtz" => "josh@rokkincat.com" } + s.source = { :git => "https://github.com/RokkinCat/phoenix-objc.git", :tag => s.version.to_s } s.platform = :ios, '7.0' s.requires_arc = true @@ -32,7 +27,5 @@ Pod::Spec.new do |s| 'Phoenix-ObjC' => ['Pod/Assets/*.png'] } - # s.public_header_files = 'Pod/Classes/**/*.h' - # s.frameworks = 'UIKit', 'MapKit' - # s.dependency 'AFNetworking', '~> 2.3' + s.dependency 'SocketRocket', '~> 0.3.1-beta2' end