Skip to content
Synchronous PHP client for WAMP protocol
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.phan
src
.gitignore
LICENSE
README.md
composer.json

README.md

WampSyncClient

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

Quickstart

Installation composer require jszczypk/wampsyncclient

Anonymous connections

$wamp = new \JSzczypk\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 \JSzczypk\WampSyncClient\Client("ws://127.0.0.1:9000/", "realm", "user", "password");
$result = $wamp->call('com.myapp.add2', [2, 3]);
You can’t perform that action at this time.