SmartFox Methods |
The SmartFox type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | AddEventListener |
Adds a delegate to a given API event type that will be used for callbacks.
|
![]() ![]() | AddLogListener |
Registers a delegate method for log messages callbacks.
|
![]() | Connect | |
![]() ![]() | Connect(ConfigData) |
Establishes a connection between the client and a SmartFoxServer 2X instance using a configuration object.
|
![]() | Connect(String) | |
![]() ![]() | Connect(String, Int32) |
Establishes a connection between the client and a SmartFoxServer 2X instance.
|
![]() | Disconnect |
Closes the connection between the client and the SmartFoxServer 2X instance.
|
![]() | EnableLagMonitor(Boolean) | |
![]() | EnableLagMonitor(Boolean, Int32) | |
![]() | EnableLagMonitor(Boolean, Int32, Int32) |
Enables the automatic realtime monitoring of the lag between the client and the server (round robin).
|
![]() ![]() | GetRoomById |
Retrieves a Room object from its id.
|
![]() ![]() | GetRoomByName |
Retrieves a Room object from its name.
|
![]() | GetRoomListFromGroup |
Retrieves the list of Rooms which are part of the specified Room Group.
|
![]() ![]() | InitCrypto |
Initializes the connection cryptography to protect all client-server communications with standard TLS protocol.
|
![]() | InitUDP | |
![]() | InitUDP(String) | |
![]() ![]() | InitUDP(String, Int32) |
Initializes the UDP protocol by performing an handshake with the server.
|
![]() | KillConnection |
Simulates an abrupt disconnection from the server.
|
![]() | LoadConfig | |
![]() | LoadConfig(Boolean) | |
![]() | LoadConfig(String) | |
![]() ![]() | LoadConfig(String, Boolean) |
Loads the client configuration file.
|
![]() ![]() | ProcessEvents |
Tells the API to process all event queues and execute the delegate callbacks.
|
![]() | RemoveAllEventListeners |
Removes all event listeners.
|
![]() | RemoveEventListener |
Removes a delegate registration for a given API event.
|
![]() | RemoveLogListener |
Removes a delegate method for log messages callbacks.
|
![]() ![]() | Send |
Sends a request to the server.
|
![]() | SetClientDetails |
Allows to set custom client details used to gather statistics about the client platform in the SFS2X Analytics Module.
|