Skip to main content

Streamlit component that allows you to reflect messages

Project description

MessageReflector

概述

MessageReflector 是一个用于处理消息反射组件。它允许应用程序将服务端的消息发送给客户端,再有客户端原样返回,以避免服务端直接处理消息时卡主UI。

功能

  • 消息处理: 将服务端的消息发送给客户端,再有客户端原样返回

发布

  1. 进入frontent执行npm run build
  2. 进入setup.py目录执行 python setup.py sdist bdist_wheel
  3. 执行运行 Upload PiPy Task

安装

使用 npm 或 yarn 安装组件:

npm install message_reflector
# 或者
yarn add message_reflector

使用示例

import MessageReflector from 'message_reflector';

const App = () => {
    return (
        <MessageReflector onMessage={(msg) => console.log(msg)} />
    );
};

API

Props

  • onMessage: (function) 当接收到新消息时调用的回调函数。
  • url: (string) 消息源的 URL。

贡献

欢迎任何形式的贡献!请查看 贡献指南 以获取更多信息。

许可证

该项目遵循 MIT 许可证。有关详细信息,请参阅 LICENSE 文件。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

message_reflector-0.0.3.tar.gz (246.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

message_reflector-0.0.3-py3-none-any.whl (247.0 kB view details)

Uploaded Python 3

File details

Details for the file message_reflector-0.0.3.tar.gz.

File metadata

  • Download URL: message_reflector-0.0.3.tar.gz
  • Upload date:
  • Size: 246.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for message_reflector-0.0.3.tar.gz
Algorithm Hash digest
SHA256 21c067f9b3c5f8a7f6ade9519179d04042969e19a768d3b09fb21612562c8d14
MD5 24c660fedc5f94ab5357b85e585a570c
BLAKE2b-256 5371dc93e27a7d068c8ab3f8bd8ab11149739cb430c416fe9ef30292cb381c82

See more details on using hashes here.

File details

Details for the file message_reflector-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for message_reflector-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 968d2a3c157a16545d27834ef45b4c874d0f1e15c504b54f9a7a08e5f6ff6865
MD5 16438126cc8acc2ee4e16ab34a166bcb
BLAKE2b-256 f1c9952c141f7c713f59bab81a6ae7d3ac56693f780edf5546ce570072baf364

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page