• WebSocketServer
  • WebSocketServer Class

    class nymeaserver::WebSocketServer

    This class represents the websocket server for nymead. More...

    Header: #include <WebSocketServer>

    Detailed Description

    Note: The WebSocketServer is only available for builds with Qt version greater than Qt 5.3.0!

    The websocket server provides a server for websocket clients based on Protocol Version 13. The default port for the websocket server is 4444, which is according to this list officially free.

    The URL for the insecure websocket:

    The URL for the secure websocket (TLS 1.2):
    \code wss://localhost:4444

    You can turn on the wss server in the WebServerServer section of the /etc/nymea/nymead.conf file.

    Note: For wss you need to have a certificate and configure it in the SSL-configuration section of the /etc/nymea/nymead.conf file.

    See also WebServer, TcpServer, and TransportInterface.