Preparing search index...
The search index is not available
太阳TS基础框架(solar)
太阳TS基础框架(solar)
util/net/SyncUtil
default
Class default
No Self
Hierarchy
default
Index
Constructors
constructor
Properties
big
Data
Buffer
data_
length_
max
Methods
on
Sync
Big
Data
on
Sync
Data
on
Sync
Obj
Data
sync
Big
Data
sync
Data
sync
Obj
Data
Constructors
constructor
new default
(
)
:
default
Returns
default
Properties
Static
big
Data
Buffer
big
Data
Buffer
:
{}
= {}
只能在同步里调用此方法
Type declaration
Static
data_
length_
max
data_
length_
max
:
number
= 976
Methods
Static
on
Sync
Big
Data
on
Sync
Big
Data
(
key
:
string
, actionFunc
:
(
(
triggerPlayer
:
player
, data
:
string
)
=>
void
)
)
:
void
当同步大数据时 超过976长度的字符串则为大数据
Parameters
key:
string
actionFunc:
(
(
triggerPlayer
:
player
, data
:
string
)
=>
void
)
(
triggerPlayer
:
player
, data
:
string
)
:
void
Parameters
triggerPlayer:
player
data:
string
Returns
void
Returns
void
Static
on
Sync
Data
on
Sync
Data
(
key
:
string
, actionFunc
:
(
(
triggerPlayer
:
player
, data
:
string
)
=>
void
)
)
:
void
只能在同步里调用此方法
Parameters
key:
string
actionFunc:
(
(
triggerPlayer
:
player
, data
:
string
)
=>
void
)
(
triggerPlayer
:
player
, data
:
string
)
:
void
Parameters
triggerPlayer:
player
data:
string
Returns
void
Returns
void
Static
on
Sync
Obj
Data
on
Sync
Obj
Data
(
key
:
string
, actionFunc
:
(
(
triggerPlayer
:
player
, data
:
any
)
=>
void
)
)
:
void
当接收到同步对象时 注意发送端也要发送对象
Parameters
key:
string
actionFunc:
(
(
triggerPlayer
:
player
, data
:
any
)
=>
void
)
(
triggerPlayer
:
player
, data
:
any
)
:
void
Parameters
triggerPlayer:
player
data:
any
Returns
void
Returns
void
Static
sync
Big
Data
sync
Big
Data
(
key
:
string
, data
?:
string
)
:
void
可在异步里调用此方法
Parameters
key:
string
data:
string
= ""
Returns
void
Static
sync
Data
sync
Data
(
key
:
string
, data
?:
string
)
:
void
可在异步里调用此方法
Parameters
key:
string
data:
string
= ""
Returns
void
Static
sync
Obj
Data
sync
Obj
Data
(
key
:
string
, data
:
any
)
:
void
Parameters
key:
string
data:
any
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
太阳TS基础框架(solar)
tool/
Buff
tool/
Cache
tool/
Cool
Down
tool/
Object
Pool
tool/STimer
tool/event/
Unit
Attacked
Event
tool/event/
Unit
Damaged
Event
tool/event/
Unit
Death
Event
tool/event/
Unit
Event
tool/event/
Unit
Item
Event
tool/event/
Unit
Spell
Event
util/
Base
Util
util/ability/
Ability
Mapping
Util
util/ability/
Ability
Util
util/archive/
Archive
Util
util/archive/
Global
Archive
Util
util/archive/
Local
Archive
Util
util/debug/
Debug
Check
Sync
Util
util/debug/
Debug
Sgp
Util
util/debug/
Debug
Util
util/debug/
Debug
Vm
Util
util/frame/
Ex
Frame
Api
Util
util/frame/
Frame
Callback
Util
util/frame/
Frame
Layer
Util
util/frame/
Native
Frame
Util
util/game/
Camera
Util
util/game/
Destructable
Util
util/game/
Effect
Util
util/game/
Force
Util
util/game/
Game
Util
util/game/
Gui
Util
util/game/
Item
Util
util/game/
List
File
Util
util/game/
Object
Data
Util
util/game/
Player
Util
util/game/
Rect
Util
util/lang/
Bool
Util
util/lang/
Hook
Util
util/lang/
Lang
Util
util/lang/
Singleton
Util
util/math/
Codec
Util
util/math/
Interpolation
Util
util/math/
Leap
Util
util/math/
Math
Util
util/math/
Random
Util
util/math/
Tween
Util
util/math/
Vector
Util
util/net/
Async
Util
util/net/
Sync
Util
util/other/
Combat
Power
Util
util/system/
Attribute
Util
util/system/
Buff
Util
util/system/
Damage
Util
util/system/
Event
Util
util/system/
Trigger
Util
util/text/
Text
Tag
Util
util/text/
Text
Util
util/unit/
Group
Util
util/unit/
Hero
Util
util/unit/
Select
Util
util/unit/
Unit
State
Util
util/unit/
Unit
Util
util/unit/
Vest
Util
w3ts/handles/camera
w3ts/handles/destructable
w3ts/handles/dialog
w3ts/handles/effect
w3ts/handles/fogmodifier
w3ts/handles/force
w3ts/handles/frame
w3ts/handles/gamecache
w3ts/handles/group
w3ts/handles/handle
w3ts/handles/image
w3ts/handles/item
w3ts/handles/leaderboard
w3ts/handles/multiboard
w3ts/handles/player
w3ts/handles/point
w3ts/handles/quest
w3ts/handles/rect
w3ts/handles/region
w3ts/handles/sound
w3ts/handles/texttag
w3ts/handles/timer
w3ts/handles/timerdialog
w3ts/handles/trigger
w3ts/handles/ubersplat
w3ts/handles/unit
w3ts/handles/widget
default
constructor
big
Data
Buffer
data_
length_
max
on
Sync
Big
Data
on
Sync
Data
on
Sync
Obj
Data
sync
Big
Data
sync
Data
sync
Obj
Data
No Self