silverorange / net_notifier
使用WebSockets的异步通知系统
1.0.1
2022-06-20 15:50 UTC
Requires
- php: >=5.3.0
- ext-mbstring: *
- pear/console_commandline: ^1.1.10
Suggests
- ext-pnctl: Allows UNIX signals to stop the server.
This package is not auto-updated.
Last update: 2024-09-14 14:55:34 UTC
README
Net_Notifier是一个使用WebSockets从PHP程序发送和接收消息的系统。
Net_Notifier提供用于监听和转发通知的服务器,一个可以发送通知到服务器的发送器,以及一个可以接收从服务器转发来的通知的监听器。
一个示例用例是在电子商务网站上放置订单时发送订单通知。
服务器
Net_Notifier附带一个用于接收和转发通知的CLI服务器。它具有以下界面
Service that receives and relays notifications to listening clients. Usage: net-notifier-server [options] Options: -p port, --port=port Optional port on which to listen for notifications. If not specified, port 3000 is used. -v, --verbose Sets verbosity level. Use multiples for more detail (e.g. "-vv"). -h, --help show this help message and exit --version show the program version and exit