搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目

暂无相关数据。