Skip to content

IMJ self setErrorCallback callback

xu.jingyu edited this page Dec 24, 2019 · 3 revisions

简介

设置错误回调

设置错误回调,连接错误不会回调,发送或接收信息或解析错误会回调

  • @param callback callback 连接状态的回调,格式为:
function(number code, string msg, table sendmsg)
	--- code:错误代码,见状态码;msg:信息;sendmsg:若是发送消息失败导致,则回传发送的消息
end
Clone this wiki locally