Phoenix-ObjC 0.2.2

Phoenix-ObjC 0.2.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by Josh Holtz.



  • By
  • Josh Holtz

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

Author

Josh Holtz, [email protected]

License

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