Skip to content

Instantly share code, notes, and snippets.

@pcrawfor
Created March 5, 2011 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcrawfor/856834 to your computer and use it in GitHub Desktop.
Save pcrawfor/856834 to your computer and use it in GitHub Desktop.
Initialize a Client
// 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