-
Notifications
You must be signed in to change notification settings - Fork 207
IMJ
xu_whale edited this page Dec 4, 2019
·
4 revisions
<# nil #>
IMJ通信,使用自定义ip(port)来收发消息
IMJ() 构造方法
设置IP
设置端口
进行接连
断开连接
判断IMJ是否已经连接
设置连接状态回调
设置收到消息后的回调
[send(number type, table msg, boolean sendNow)](https://github.com/momotech/MLN/wiki/IMJ-self-send-number-table-boolean)
发送消息,当出错时,将在ErrorCallback回调
[setErrorCallback(callback callback)](https://github.com/momotech/MLN/wiki/IMJ-self-setErrorCallback-callback)
设置错误回调