class TopicManager implements WsServerInterface, WampServerInterface

Class TopicManager

Properties

protected WampServerInterface $app
protected array $topicLookup

Methods

setWampApplication(WampServerInterface $app)

No description

onOpen(ConnectionInterface $conn)

{@inheritdoc}

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

{@inheritdoc}

onSubscribe(ConnectionInterface $conn, $topic)

{@inheritdoc}

onUnsubscribe(ConnectionInterface $conn, $topic)

{@inheritdoc}

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

{@inheritdoc}

onClose(ConnectionInterface $conn)

{@inheritdoc}

onError(ConnectionInterface $conn, Exception $e)

{@inheritdoc}

getSubProtocols()

{@inheritdoc}

Topic
getTopic(string $topic)

No description

cleanTopic(Topic $topic, ConnectionInterface $conn)

No description

Details

at line 27
setWampApplication(WampServerInterface $app)

Parameters

WampServerInterface $app

at line 34
onOpen(ConnectionInterface $conn)

{@inheritdoc}

Parameters

ConnectionInterface $conn

at line 42
onCall(ConnectionInterface $conn, $id, $topic, array $params)

{@inheritdoc}

Parameters

ConnectionInterface $conn
$id
$topic
array $params

at line 49
onSubscribe(ConnectionInterface $conn, $topic)

{@inheritdoc}

Parameters

ConnectionInterface $conn
$topic

at line 62
onUnsubscribe(ConnectionInterface $conn, $topic)

{@inheritdoc}

Parameters

ConnectionInterface $conn
$topic

at line 74
onPublish(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible)

{@inheritdoc}

Parameters

ConnectionInterface $conn
$topic
$event
array $exclude
array $eligible

at line 81
onClose(ConnectionInterface $conn)

{@inheritdoc}

Parameters

ConnectionInterface $conn

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

{@inheritdoc}

Parameters

ConnectionInterface $conn
Exception $e

at line 98
getSubProtocols()

{@inheritdoc}

at line 112
Topic getTopic(string $topic)

Parameters

string $topic

Return Value

Topic

at line 121
protected cleanTopic(Topic $topic, ConnectionInterface $conn)

Parameters

Topic $topic
ConnectionInterface $conn