パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.3.3

xmpp_stone

Xmpp Stone は、完全に Dart で書かれた軽量な XMPP クライアントライブラリです。

30日間ダウンロード
409
いいね数
72
Pub ポイント
40

パッケージをインストール

flutter pub add xmpp_stone

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Xmpp Stone は、Dart で完全に構築された軽量な XMPP クライアントライブラリであり、Flutter アプリケーションにおけるリアルタイム通信を目的としています。即時メッセージ、プレゼンスの更新、リアルタイムデータ交換をサポートする、XMPP(拡張可能なメッセージングおよびプレゼンスプロトコル)機能をシームレスに統合できます。重い依存関係なしに効率的かつクロスプラットフォームのリアルタイム通信を実現したい開発者にとって理想的です。明確なAPIとパフォーマンスへの注力により、アプリ内でのチャットや共同作業機能の実装が簡単になります。ソースコードはGitHub上で公開されており、透明性とカスタマイズのためのアクセスが可能です。

用途

  • リアルタイムメッセージングアプリ
  • 存在状態とステータスの追跡
  • チャットベースのコラボレーションツール
  • IoTデバイス通信
  • クロスプラットフォームチャット統合

主な機能

  • 軽量で高速
  • 純粋なDart実装
  • XMPPプロトコルをサポートしています
  • Flutterとの簡単な統合
  • オープンソースで拡張可能

適している対象

  • チャットアプリを開発する開発者
  • リアルタイム同期が必要なチーム
  • XMPPサポートを必要とするプロジェクト
  • 低遅延が必要なFlutterアプリ
  • カスタムリアルタイム通信ソリューション

注意事項

  • 限られたドキュメント
  • 公式なメンテナンス状態なし
  • XMPP サーバーのセットアップが必要です
  • 複雑なメッセージングワークフローには適していません
  • 外部のXMPPサーバーインフラに依存しています

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

XmppStone

Lightweight XMPP client library written completely in Dart. My intention is to write simple to use library for future XMPP client based on Flutter.

Supported documents:

  • RFC6120: Extensible Messaging and Presence Protocol (XMPP): Core
  • RFC6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
  • XEP-0198: Stream Management
  • XEP-0085: Chat State Notifications
  • XEP-0318: Best Practices for Client Initiated Presence Probes
  • XEP-0280: Message Carbons

Partly supported:

  • XEP-0030: Service Discovery
  • XEP-0313: Message Archive Management

Actively working on:

  • XEP-0059: Result Set Management
  • XEP-0004: Data Forms

Latest news

  • 2020-10-30: Added support for XEP-0280: Message Carbons
  • 2020-10-30: Added initial support for XEP-0313: Message Archive Management
  • 2020-10-30: Added logging mechanism
  • 2020-07-23: Added support for XEP-0318: Best Practices for Client Initiated Presence Probes
  • 2020-05-02: Added initial support for XEP-0198 : Stream Management
  • 2020-05-02: Added initial support for XEP-0085 : Chat State Notifications
  • 2019-04-02: added support for: XEP-0054: vcard-temp
  • 2019-04-01: added support for SHA-1 and SHA-256 authentication algorithm

Usage

import 'package:xmpp_stone/xmpp_stone.dart' as xmpp;

main() {
  xmpp.Connection connection = new xmpp.Connection("user@domain", "password", 5222);
  connection.open();
}

Features

1. Logging
Log level

Client can set logging level of the library with command:

Log.logLevel = LogLevel.VERBOSE;
XMPP traffic logging

Xmpp traffic can be enabled or disabled with:

Log.logXmpp = false
2. Message Archive Management

Feature is work in progress, API is subject to change.

Initial implementation of Message Archive Management.

RST is not yet implemented.

Usage:

  • Grabbing the module
connection.getMamModule()
  • Querying all messages:
mamManager.queryAll();
  • Querying messages based on date (All parameters are optional):
mamManager.queryByTime(start: startTime, end: endTime, jid: buddyJid);
  • Querying messages based on messageId (All parameters are optional): This method requires urn:xmpp:mam:2#extended to be supported by the serve, soon it will be available to check feature support.
mamManager.queryById(beforeId: beforeId, afterId: afterId, jid: buddyJid});

Checking capabilities of the server:

mamManager.isQueryByDateSupported
mamManager.isQueryByIdSupported
mamManager.isQueryByJidSupported

カテゴリー

依存関係

依存関係一覧 10 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。