Skip to content

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rokkincat committed Mar 2, 2015
1 parent e93fc20 commit 4fe2950
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
15 changes: 4 additions & 11 deletions Example/Phoenix-ObjC/PhoenixViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@ @interface PhoenixViewController ()<PhoenixDelegate>

@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];

Expand All @@ -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
Expand Down
19 changes: 6 additions & 13 deletions Phoenix-ObjC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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/<GITHUB_USERNAME>/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" => "[email protected]" }
s.source = { :git => "https://github.com/<GITHUB_USERNAME>/Phoenix-ObjC.git", :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.author = { "Josh Holtz" => "[email protected]" }
s.source = { :git => "https://github.com/RokkinCat/phoenix-objc.git", :tag => s.version.to_s }

s.platform = :ios, '7.0'
s.requires_arc = true
Expand All @@ -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

0 comments on commit 4fe2950

Please sign in to comment.