Created
March 5, 2011 23:46
-
-
Save pcrawfor/856834 to your computer and use it in GitHub Desktop.
Initialize a Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import the client | |
#import "FayeClient.h" | |
// init the FayeClient with a server and channel to subscribe to | |
FayeClient *faye = [[FayeClient alloc] initWithURLString:@"ws://localhost:8000/faye" | |
channel:@"/chat"]; | |
// ensure that you implement the FayeClientDelegate functions | |
faye.delegate = self; | |
// connect to the server | |
[faye connectToServer]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment