搜尋套件、儲存庫與 APP 分類

套件詳情v5.1.0

mqtt5_client

一個基於伺服器和瀏覽器的 Dart MQTT5 客戶端,支援一般、安全套接字和 WebSocket。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
6.1萬
喜歡數
72
Pub 分數
150

安裝套件

flutter pub add mqtt5_client

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Dart 套件,提供用於在多個平台應用程式中建立即時通訊的 MQTT5 客戶端。支援標準、安全(TLS)及 WebSocket 連接,可讓裝置與伺服器之間實現可靠的訊息傳遞。適用於物聯網、即時資料串流及聊天應用,可在 Android、iOS、Web、macOS、Windows 及 Linux 上順暢運作。此客戶端實作了完整的 MQTT 5 協定,包含會話持續性、增強的錯誤處理及自訂屬性等進階功能。專為需要強大、跨平台連線且設定簡單的開發者設計。

適用情境

  • 物聯網設備通訊
  • 即時儀表板
  • 即時聊天應用
  • 遠端感測器監控
  • 推送通知
  • 跨平台訊息傳遞

主要特色

  • 支援 MQTT 5 協議
  • 安全的 TLS 和 WebSocket 連接
  • 會話持久性
  • 跨平台相容性
  • 自定訊息屬性
  • 錯誤代碼處理

適合對象

  • 物聯網開發者
  • 即時應用建構器
  • Web 和移動開發人員
  • 需要發布/訂閱的後端服務
  • 需要可靠訊息傳遞的應用程式

使用建議

  • 需要理解MQTT協議
  • 可能需要為防火牆進行額外設定
  • WebSocket 支援取決於伺服器設定
  • 不適合非即時使用情境
  • 與成熟的替代方案相比,文件有限

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

mqtt5_client

Build Status

A server and browser based MQTT Version 5 client for Dart.

The client is an MQTT Version 5 implementation supporting subscription/publishing at all QOS levels, authentication, keep alive and synchronous connection. The client is designed to take as much MQTT protocol work off the user as possible, connection protocol is handled automatically as are the message exchanges needed to support the different QOS levels and the keep alive mechanism. This allows the user to concentrate on publishing/subscribing and not the details of MQTT itself.

Examples of usage can be found in the examples directory.

The server client supports both normal and secure TCP connections and secure(wss) and non-secure(ws) websocket connections. The browser client supports only secure(wss) and non-secure(ws) websocket connections.

Please read the changelog for details related to specific versions.

This version of the client supports the full MQTT Version 5 message set including the setting and reception of user properties and authentication using the authenticate message. Some aspects of the MQTT version 5 protocol are not yet fully implemented and will be added in future versions. If some particular currently unsupported functionality is needed please raise an issue for it and this will be processed ahead of other functionality.

Omissions from the full MQTT Version 5 specification in this version are as follows :-

  • Parameters received in the connect acknowledge message are not fully acted upon, e.g receive maximum and topic alias maximum values for instance are not enforced.
  • Subscription identifiers and shared subscriptions are not fully supported.
  • Server redirection is not supported.
  • Reason codes are processed only in support of the protocol itself, other than this although received reason codes are made available to the user the client will not necessarily take any action itself.
  • Flow control is not fully supported.

所屬分類

依賴

依賴清單 8 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。