The Event is dispatched in response to a login request.
Namespace: Sfs2X.CoreAssembly: SmartFox2 (in SmartFox2.dll) Version: 0.9.14.0
Syntax
| C# |
|---|
public static readonly string LOGIN |
Remarks
The Params object contains the following parameters.
| parameter | description |
|---|---|
| user | (User) the User object |
| data | (SFSObject) a custom object with extra params (if you have added custom server side logic) |
Examples
The following example shows how to handle a login event
CopyC#
smartFox.AddEventListener(SFSEvent.LOGIN, OnLogin); void OnLogin(BaseEvent evt) { Console.WriteLine("Hi, I have just logged in as: " + ((User)evt.Params["user"]).Name); }