#include <tpublisher.h>
|
void | subscribe (const QString &topic, bool local, TAbstractWebSocket *socket) |
|
void | unsubscribe (const QString &topic, TAbstractWebSocket *socket) |
|
void | unsubscribeFromAll (TAbstractWebSocket *socket) |
|
void | publish (const QString &topic, const QString &text, TAbstractWebSocket *socket) |
|
void | publish (const QString &topic, const QByteArray &binary, TAbstractWebSocket *socket) |
|
|
Pub * | create (const QString &topic) |
|
Pub * | get (const QString &topic) |
|
void | release (const QString &topic) |
|
The TPublisher class provides a means of publish subscribe messaging for websocket.
◆ castToObject()
QObject * TPublisher::castToObject |
( |
TAbstractWebSocket * |
socket | ) |
|
|
staticprotected |
◆ create()
Pub * TPublisher::create |
( |
const QString & |
topic | ) |
|
|
protected |
◆ get()
Pub * TPublisher::get |
( |
const QString & |
topic | ) |
|
|
protected |
◆ instance()
◆ publish() [1/2]
void TPublisher::publish |
( |
const QString & |
topic, |
|
|
const QByteArray & |
binary, |
|
|
TAbstractWebSocket * |
socket |
|
) |
| |
◆ publish() [2/2]
void TPublisher::publish |
( |
const QString & |
topic, |
|
|
const QString & |
text, |
|
|
TAbstractWebSocket * |
socket |
|
) |
| |
◆ receiveSystemBus
void TPublisher::receiveSystemBus |
( |
| ) |
|
|
protectedslot |
◆ release()
void TPublisher::release |
( |
const QString & |
topic | ) |
|
|
protected |
◆ subscribe()
void TPublisher::subscribe |
( |
const QString & |
topic, |
|
|
bool |
local, |
|
|
TAbstractWebSocket * |
socket |
|
) |
| |
◆ unsubscribe()
void TPublisher::unsubscribe |
( |
const QString & |
topic, |
|
|
TAbstractWebSocket * |
socket |
|
) |
| |
◆ unsubscribeFromAll()
void TPublisher::unsubscribeFromAll |
( |
TAbstractWebSocket * |
socket | ) |
|
The documentation for this class was generated from the following files: