bdk/wamp-publisher 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bdk/wamp-publisher

Composer 安装命令:

composer require bdk/wamp-publisher

包简介

WAMP (Web Application Messaging Protocol) client to publish messages to router

关键字:

README 文档

README

Push messages to a WAMP (Web Application Messaging Protocol) router

Wamp Publisher only implements the publish portion of the WAMP protocol. It does NOT implement Remote Procedure Calls or Subscribe.

Use it in your script/application to implement logging, notifications, or perform live website updates. (see some WAMP examples on crossbar.io)

WampPublisher is built on the websocket client textalk/websocket-php

Installation

Download Composer (if not already installed) more info

$ curl -sS https://getcomposer.org/installer | php

Require WampPublisher (and it's dependency) in your project

$ php composer.phar require bdk/wamp-publisher

Everything is now good to go.

Usage Example

<?php
require __DIR__ . '/vendor/autoload.php';

use bdk\WampPublisher;

$wamp = new \bdk\WampPublisher(array(
	'url' => 'ws://127.0.0.1:9090/',
	'realm' => 'myRealm',
));
$wamp->publish('my.topic', array("I'm published to the my.topic topic"));
$sum = 1 + 1;  // WAMP Publisher doesn't block you from doing other tasks
$wamp->publish('my.topic', array("Another message"));

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固