Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (18 sloc) 558 Bytes

TCP

Base

socket.msgInfo(type, extend_info)

发送type事件,并携带extend_info

socket.onMsgInfo(type, cb)

监听type事件

socket.msgSuccess(type, extend_info, successMsg)

发送[type]:success事件

socket.onMsgSuccess(type)

监听[type]:success事件

socket.msgError(type, extend_info, errorMsg)

发送[type]:error事件

socket.onMsgError(type)

监听[type]:error事件

拓展阅读

Extend:Router Extend:Redis Extend:Component

You can’t perform that action at this time.