Inherits from BaseRequest : NSObject
Declared in LoginRequest.h
LoginRequest.m

Overview

Join one of the Zones in the Server.

Each Zone represents a different application running independently In order to join a Zone a user name and password are usually required. If the Zone allows guest users, user name and password are not needed and a guest name will be created on the server side If the Zone uses a server side extension to handle the login, you can also send a custom SFSObject with any extra parameters.

Class Methods

requestWithUserName:password:zoneName:params:

the user name.

+ (id)requestWithUserName:(NSString *)userName password:(NSString *)password zoneName:(NSString *)zoneName params:(id<ISFSObject>)params

Parameters

userName

the user name.

password

the password.

zoneName

the name of an existing Zone in the server (case sensitive, ‘SimpleChat’ != ‘simplechat’). If no Zone is specified the SmartFox.config.zone parameter will be used.

params

the custom parameters (optional, if you use an Extension on server side to handle the login)

Declared In

LoginRequest.h