Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 558 Bytes

README.md

File metadata and controls

33 lines (18 loc) · 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