Skip to content

forzafootball/phoenix-objc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phoenix-ObjC

CI Status Version License Platform

Example

// Opens connection to Phoenix
_phoenix = [[Phoenix alloc] initWithURL:[NSURL URLWithString:@"ws://localhost:4000/ws"]];
[_phoenix setDelegate:self];
[_phoenix open];

// Creates, listens on, and joins channel
_channel = [[PhoenixChannel alloc] initWithTopic:@"channel:incoming" payload:nil withPhoenix:_phoenix];
[_channel on:@"response:event" handleEventBlock:^(id message) {
    NSLog(@"Message - %@", message);
}];
[_channel join];

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

SocketRocket - 0.4.x

Installation

Phoenix-ObjC is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Phoenix-ObjC"

Author

Josh Holtz, [email protected]

License

Phoenix-ObjC is available under the MIT license. See the LICENSE file for more info.

About

Objective-C client library for Phoenix Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 88.9%
  • JavaScript 3.8%
  • C 3.0%
  • Shell 1.7%
  • Elixir 1.6%
  • Ruby 0.4%
  • Other 0.6%