定制 voryx/thruway-subscription-meta 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

voryx/thruway-subscription-meta

最新稳定版本:0.2.1

Composer 安装命令:

composer require voryx/thruway-subscription-meta

包简介

Subscription Meta Module for Thruway library

README 文档

README

  • Thruway Subscription Meta Module

This is a module for the Thruway router that provides subscription meta events.

This module only implements the events portion of the spec.

This module does not group subscriptions. Every subscription will cause a on_create and on_subscribe event.

  • Use

The module can be added to the router to provide meta events for all realms:

$router = new Router();
$router->registerModules([
    new RatchetTransportProvider(),
    new SubscriptionMetaModule()
]);

$router->start();

or as a realm module to provide meta events on individual realms:

$router = new Router();
$router->registerModules([
    new RatchetTransportProvider()
]);

$realm = $router->getRealmManager()->getRealm('some_realm');
$realm->addModule(new SubscriptionMetaModule());

$router->start();

统计信息

  • 总下载量: 10.15k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-12