import com.hyphenate.chat.EMClient;
EMClient.getInstance().init(mContext, mEMOptions);
EMClient.getInstance().login(username, password, null);
EMMessage message = EMMessage.createTxtSendMessage(content, toChatUsername);
EMClient.getInstance().chatManager().sendMessage(message);
EMClient.getInstance().logout(true);
#import <HyphenateChat/HyphenateChat.h>
[[EMClient sharedClient] initializeSDKWithOptions:[EMOptions optionsWithAppkey:@"appkey"]];
[[EMClient sharedClient] loginWithUsername:@"username" password:@"password" completion:nil];
EMMessage *message = [[EMMessage alloc]initWithConversationID:@"conversationId" from:@"from" to:@"
to" body:[[EMTextMessageBody alloc]initWithText:@"text"] ext:nil];
[[EMClient sharedClient].chatManager sendMessage:message progress:nil completion:nil];
[[EMClient sharedClient] logout:YES];
import 'package:im_flutter_sdk/im_flutter_sdk.dart';
await EMClient.getInstance.init(EMOptions(appKey: Appkey));
await EMClient.getInstance.login('username','password');
EMMessage msg = EMMessage.createTxtSendMessage(username: toUsername, content: 'hello Hyphenate');
await EMClient.getInstance.chatManager.sendMessage(msg);
await EMClient.getInstance.logout(true);
let websdk = require("./wxsdk")
let connection = new websdk.connection({appKey: 'appkey'})
connection.open({user: 'username', pwd: 'password', appKey: 'appkey'});
let id = connection.getUniqueId();
let msg = new websdk.message('txt', id);
msg.set({ msg: 'message content', to: 'userId',)
connection.send(msg.body);
connection.close();
import websdk from 'easemob-websdk'
let connection = new websdk.connection({appKey: 'appkey'})
connection.open({user: 'username', pwd: 'password', appKey: 'appkey'});
let id = connection.getUniqueId();
let msg = new websdk.message('txt', id);
msg.set({ msg: 'message content', to: 'userId',)
connection.send(msg.body);
connection.close();
单聊
群聊
聊天室
超大群聊(成员人数无上限)
超级社区
AI陪聊
弹幕
点赞
打赏
榜单
直播间管理(禁言、踢人、麦位)
音视频
图片
GIFs
文件
自定义
禁言
拉黑
踢人
免打扰
好友托管
文本
图片
视频
厂商审核
配置控制台
消息存储
已读回执
已送达回执
未读消息数
正在输入状态
消息搜索
全局广播
离线消息
Reactions
Threads
多端多设备登录
引用
撤回
编辑
转发
多选
翻译
举报
@提及