E5B6 GitHub - RokkinCat/phoenix-objc: Objective-C client library for Phoenix Framework · GitHub
[go: up one dir, main page]

Skip to content

RokkinCat/phoenix-objc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 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, josh@rokkincat.com

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

 
 
 

Contributors

0