0.1.6 • Published 2 years ago

nyzx-imjs v0.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

im-login

使用方式

import {init,imLogin} from 'nyzx-im'
init(mode) //mode test serve 
imLogin(userId,identity) // userId 用户id  identity   用户身份
createSingleCharMessage(to,content) //创建单聊消息
/**
 * to 
 *  userId
 *  userType
 * content 通过createContent 创建的消息体
 * 
 * */
createContent(type,lastMsg,msgType,content) 
// type 消息的大类型 
// lastMsg 最后一句话 
// msgType 消息的具体类型  
// content 此消息需要的参数

registerCallback(events,callback)

events 

const events = {
    NEW_MESSAGE:'NEW_MESSAGE'
}
0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago