Skip to content

IMJ self setConnectCallback function

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

简介

设置连接状态回调

设置连接状态回调,连接成功或失败,或断开连接都会回调

  • @param callback function 连接状态的回调,格式为:
function(number code, string msg)
	--- code:连接状态码,见状态码;msg:连接信息
end
Clone this wiki locally