1 #ifndef VFS_WEBSOCKET_VFSCLIENT_H
2 #define VFS_WEBSOCKET_VFSCLIENT_H
14 void sendText(QString command, QJsonObject attributes);
15 void sendBinary(QString command, QJsonObject attributes);
21 virtual QJsonDocument
receive(QByteArray message);
Create a websocket client that will observe VFS connection rules like auth and reconnect.
virtual QJsonDocument receive(QByteArray message)
Receive a message from the server.
QString _password
password used when authenticating
virtual ~VFS_websocket_VFSclient()
void authDenied()
A connection was attempted, but authorization was denied.
void sendText(QString command, QJsonObject attributes)
Send a VFS command as a text message.
void sendBinary(QString command, QJsonObject attributes)
Send a VFS command as a text message.
void commandReceived(QString command, QJsonObject attributes)
A command was received, but it needs to be processed by a listener.
QString _username
username used when authenticating
void authorized()
A connection has been made and authorization is complete.
virtual void socket_connected()
Override the default VFS_websocket_client::socket_connected() command to include an authorization ste...
VFS_websocket_VFSclient(QString wsurl, QString username, QString password="", quint16 interval=3000)
Create a websocket client that will observe VFS connection rules like auth and reconnect.
A VFS_node that manages a QWebSocket connection.