Removed subprotocol and extension getter functionality, as this
is currently not supported by QtWebSockets. I left the backend
implementation intact (in the _p files), for future reference.
Change-Id: Ia00739f6f225cd557ceb10b40c83fc81d98aae0b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
}
/*!
- \brief Returns the currently used protocol.
- */
-QString QWebSocket::protocol() const
-{
- Q_D(const QWebSocket);
- return d->protocol();
-}
-
-/*!
- \brief Returns the currently used extension.
- */
-QString QWebSocket::extension() const
-{
- Q_D(const QWebSocket);
- return d->extension();
-}
-
-/*!
\brief Returns the code indicating why the socket was closed.
\sa QWebSocketProtocol::CloseCode, closeReason()
*/
QString resourceName() const;
QUrl requestUrl() const;
QString origin() const;
- QString protocol() const;
- QString extension() const;
QWebSocketProtocol::CloseCode closeCode() const;
QString closeReason() const;
return d->supportedVersions();
}
-/*!
- Returns a list of websocket subprotocols that this server supports.
- */
-QStringList QWebSocketServer::supportedProtocols() const
-{
- Q_D(const QWebSocketServer);
- return d->supportedProtocols();
-}
-
-/*!
- Returns a list of websocket extensions that this server supports.
- */
-QStringList QWebSocketServer::supportedExtensions() const
-{
- Q_D(const QWebSocketServer);
- return d->supportedExtensions();
-}
-
QT_END_NAMESPACE
#endif
QList<QWebSocketProtocol::Version> supportedVersions() const;
- QStringList supportedProtocols() const;
- QStringList supportedExtensions() const;
Q_SIGNALS:
void acceptError(QAbstractSocket::SocketError socketError);