9 #ifndef overte_WebRTCSignalingServer_h
10 #define overte_WebRTCSignalingServer_h
12 #include <shared/WebRTC.h>
14 #if defined(WEBRTC_DATA_CHANNELS)
17 #include <QtCore/QTimer>
18 #include <QWebSocketServer>
20 #include "../SockAddr.h"
71 bool bind(
const QHostAddress& address, quint16 port);
90 void newWebSocketConnection();
91 void webSocketTextMessageReceived(
const QString& message);
92 void webSocketDisconnected();
96 void checkWebSocketServerIsListening();
98 QWebSocketServer* _webSocketServer;
99 QHostAddress _address;
102 QHash<QString, QWebSocket*> _webSockets;
106 QTimer* _isWebSocketServerListeningTimer;
Provides a WebRTC signaling server that Interface clients can use to initiate WebRTC connections to t...
Definition: WebRTCSignalingServer.h:57
void messageReceived(const QJsonObject &message)
A WebRTC signaling channel message was received from an Interface client.
void sendMessage(const QJsonObject &message)
Send a WebRTC signaling channel message to an Interface client.
Definition: WebRTCSignalingServer.cpp:121
WebRTCSignalingServer(QObject *parent, bool isWSSEnabled)
Constructs a new WebRTCSignalingServer object.
Definition: WebRTCSignalingServer.cpp:26
bool bind(const QHostAddress &address, quint16 port)
Binds the WebRTC signaling server's WebSocket to an address and port.
Definition: WebRTCSignalingServer.cpp:81