定制 bkwatch/wampsyncclient 二次开发

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

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

bkwatch/wampsyncclient

最新稳定版本:v2.0.0

Composer 安装命令:

composer require bkwatch/wampsyncclient

包简介

Synchronous (blocking) PHP client for WAMP protocol implementing Caller and Publisher roles

关键字:

README 文档

README

Synchronous (blocking) PHP client for WAMP protocol implementing Caller and Publisher roles

Quickstart

Installation composer require bkwtools/wampsyncclient

Anonymous connections

$wamp = new \BKWTools\WampSyncClient\Client("ws://127.0.0.1:9000/", "realm");
$result = $wamp->call('com.myapp.add2', [2, 3]);

With ticket or WAMP-CRA authentication

$wamp = new \BKWTools\WampSyncClient\Client("ws://127.0.0.1:9000/", "realm", "user", "password");
$result = $wamp->call('com.myapp.add2', [2, 3]);

Notes

Websocket implementation is not able to receive PING packets and reply with PONG packets when it is not actively exchanging message with router. The connection should then be used for short time with pauses between messages shorter then PING setting on the server. If you need to make longer break, please destroy the Client object and create new one.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2020-12-06