WebSocketServer: Remove unnecessary signals

This commit is contained in:
tt2468 2021-06-13 03:24:22 -07:00
parent 0de3f304f0
commit bbc504ce72
2 changed files with 0 additions and 4 deletions

View File

@ -323,8 +323,6 @@ void WebSocketServer::onClose(websocketpp::connection_hdl hdl)
// Emit signals
emit ClientDisconnected(state, conn->get_local_close_code());
if (isIdentified)
emit IdentifiedClientDisconnected(state, conn->get_local_close_code());
}
void WebSocketServer::onMessage(websocketpp::connection_hdl hdl, websocketpp::server<websocketpp::config::asio>::message_ptr message)

View File

@ -82,9 +82,7 @@ class WebSocketServer : QObject
void BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData = nullptr, uint8_t rpcVersion = 0);
signals:
void ClientIdentified(const WebSocketSessionState state);
void ClientDisconnected(const WebSocketSessionState state, const uint16_t closeCode);
void IdentifiedClientDisconnected(const WebSocketSessionState state, const uint16_t closeCode);
private:
void ServerRunner();