class WampApplication implements WampServerInterface

Class WampApplication

Properties

protected TopicDispatcherInterface $topicDispatcher
protected RpcDispatcherInterface $rpcDispatcher
protected EventDispatcherInterface $eventDispatcher
protected ClientStorageInterface $clientStorage
protected LoggerInterface $logger
protected WampRouter $wampRouter

Methods

__construct(RpcDispatcherInterface $rpcDispatcher, TopicDispatcherInterface $topicDispatcher, EventDispatcherInterface $eventDispatcher, ClientStorageInterface $clientStorage, WampRouter $wampRouter, LoggerInterface $logger = null)

No description

onPublish(ConnectionInterface $conn, Topic|string $topic, string $event, array $exclude, array $eligible)

No description

onPush(WampRequest $request, string $data, string $provider)

No description

onCall(ConnectionInterface $conn, string $id, Topic $topic, array $params)

No description

onSubscribe(ConnectionInterface $conn, Topic|string $topic)

No description

onUnSubscribe(ConnectionInterface $conn, Topic|string $topic)

No description

onOpen(ConnectionInterface $conn)

No description

onClose(ConnectionInterface $conn)

No description

onError(ConnectionInterface $conn, Exception $e)

No description

Details

at line 65
__construct(RpcDispatcherInterface $rpcDispatcher, TopicDispatcherInterface $topicDispatcher, EventDispatcherInterface $eventDispatcher, ClientStorageInterface $clientStorage, WampRouter $wampRouter, LoggerInterface $logger = null)

Parameters

RpcDispatcherInterface $rpcDispatcher
TopicDispatcherInterface $topicDispatcher
EventDispatcherInterface $eventDispatcher
ClientStorageInterface $clientStorage
WampRouter $wampRouter
LoggerInterface $logger

at line 89
onPublish(ConnectionInterface $conn, Topic|string $topic, string $event, array $exclude, array $eligible)

Parameters

ConnectionInterface $conn
Topic|string $topic
string $event
array $exclude
array $eligible

at line 107
onPush(WampRequest $request, string $data, string $provider)

Parameters

WampRequest $request
string $data
string $provider

at line 122
onCall(ConnectionInterface $conn, string $id, Topic $topic, array $params)

Parameters

ConnectionInterface $conn
string $id
Topic $topic
array $params

at line 132
onSubscribe(ConnectionInterface $conn, Topic|string $topic)

Parameters

ConnectionInterface $conn
Topic|string $topic

at line 149
onUnSubscribe(ConnectionInterface $conn, Topic|string $topic)

Parameters

ConnectionInterface $conn
Topic|string $topic

at line 165
onOpen(ConnectionInterface $conn)

Parameters

ConnectionInterface $conn

at line 174
onClose(ConnectionInterface $conn)

Parameters

ConnectionInterface $conn

at line 188
onError(ConnectionInterface $conn, Exception $e)

Parameters

ConnectionInterface $conn
Exception $e