使用范围:UI2
Contents
component Subscribe ($UI/comp/subscribe/components/subscribe/subscribe) extends BindComponent
Constructor Top
Subscribe () | |||
Subscribe ( options) |
Properties Top
anonymous
= false
是否匿名 | |||
autoConnect
= true
自动连接 |
Attributes Top
anonymous
= false
是否匿名 | |||
autoConnect
= true
自动连接 | |||
string |
xid
组件标示 |
Methods Top
void | connect () | |
void | disconnect () |
Operations Top
connect () | ||
disconnect () |
Events Top
void | onConnect (ConnectEvent event) | |
void | onError (ErrorEvent event) | |
void | onMessage (MessageEvent event) |
Constructor details
Top
public
Subscribe
()
public
Subscribe
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Subscribe
()
public
Subscribe
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
anonymous
= false
false
是否匿名
public
autoConnect
= true
true
自动连接
Attributes Detail Top
public
anonymous
= false
false
是否匿名
public
autoConnect
= true
true
自动连接
public
string
xid
组件标示
Methods Detail Top
public
void
connect
()
连接服务端
public
void
disconnect
()
断开连接
Operations Detail Top
public
connect
()
连接服务端
public
disconnect
()
断开连接
Events Detail Top
[回调型事件]连接成功
[回调型事件]错误
[回调型事件]收到消息