WebSocketServer: Finish GetConnectUrl()

This commit is contained in:
tt2468 2021-04-28 22:07:52 -07:00
parent d1d5dd74ea
commit 0370b5882d

View File

@ -187,7 +187,8 @@ std::vector<WebSocketServer::WebSocketSessionState> WebSocketServer::GetWebSocke
std::string WebSocketServer::GetConnectUrl() std::string WebSocketServer::GetConnectUrl()
{ {
return ""; QString ret = QString("ws://%1:%2").arg(QString::fromStdString(Utils::Platform::GetLocalAddress())).arg(_serverPort);
return ret.toStdString();
} }
void WebSocketServer::BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData) void WebSocketServer::BroadcastEvent(uint64_t requiredIntent, std::string eventType, json eventData)