Sets the API to run with an event queue that needs to be processed by the client.

Namespace: Sfs2X
Assembly: SmartFox2X (in SmartFox2X.dll) Version: (1.7.3)


public bool ThreadSafeMode { get; set; }

Property Value

Type: Boolean


By default this property is set to true in the Unity DLL. Instead it is set to false in the Windows / Windows Phone Universal and .Net DLLs, for native usage of the SmartFoxServer 2X API.
When using the API in Unity, this must be true, otherwise random crashes can happen. For this reason, when building an application/game for Windows / Windows Phone using Unity, always remember to set this property to true explicitly!

See Also