leave method
Implementation
Future<void> leave(String roomId) async {
_joined.remove(roomId);
if (!core.conn.authenticated) return;
try {
await core.conn.request<Object?>('chatroom.leave', {'room_id': roomId});
} catch (_) {
// 离开失败:服务端在连接断开后自行判定离开
}
}