Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
cn.rongcloud.im:server-sdk-java
Advanced tools
For improving the efficiency of developers,RongCloud provides an open source IM Server SDK officially. With this SDK, you can get token, send messages, add sensitive words, ban user, manage group, create chat room and so on.
RongCloud IM Server SDK in Java.
<dependency>
<groupId>cn.rongcloud.im</groupId>
<artifactId>server-sdk-java</artifactId>
<version>3.5.0</version>
</dependency>
compile group: 'cn.rongcloud.im', name: 'server-sdk-java', version: '3.5.0'
1、下载或克隆 `server-sdk-java`
2、进入项目 `server-sdk-java` 目录
3、安装依赖 `mvn install`
4、打包 `mvn clean package`
Java版本 7+
请前往 开发者后台 创建应用 -> 获取 Appkey、Secret
以注册用户为例
String appKey = "appKey";
String appSecret = "appSecret";
RongCloud rongCloud = RongCloud.getInstance(appKey, appSecret);
User user = rongCloud.user;
/**
*
* 注册用户,生成用户在融云的唯一身份标识 Token
*/
UserModel userModel = new UserModel()
.setId("hHjap87")
.setName("RongCloud")
.setPortrait("http://www.rongcloud.cn/images/logo.png");
TokenResult result = user.register(userModel);
System.out.println("getToken: " + result.toString());
# 打印结果
# getToken: {"reqBody":"userId=userxxd2&name=username&portraitUri=http%3A%2F%2Fwww.rongcloud.cn%2Fimages%2Flogo.png","code":1002,"errorMessage":"Invalidate App-Key.","requestId":"0c1f127e9bc1401bb05eaad61b4502f7"}
特别说明: 接口每次调用都会返回唯一的 requestId ,此 Id 为请求融云的唯一标识。
为方便开发者的接入使用,更好的对融云 Server SDK 进行维护管理,现更新SDK 3.5.0 版本,老版本的 Server SDK仍可使用,但不支持发送消息返回消息ID。
FAQs
For improving the efficiency of developers,RongCloud provides an open source IM Server SDK officially. With this SDK, you can get token, send messages, add sensitive words, ban user, manage group, create chat room and so on.
We found that cn.rongcloud.im:server-sdk-java demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.