stephb9959
2022-11-02 12:30:49 -07:00
parent b0cfed809f
commit 545c539a08
2 changed files with 2 additions and 1 deletions

View File

@@ -153,6 +153,7 @@ namespace OpenWifi::GWWebSocketNotifications {
{ 5000, "device_disconnection" },
{ 6000, "device_statistics" }
};
UI_WebSocketClientServer()->RegisterNotifications(Notifications);
}

View File

@@ -163,7 +163,7 @@ namespace OpenWifi {
}
void UI_WebSocketClientServer::RegisterNotifications(const OpenWifi::UI_WebSocketClientServer::NotificationTypeIdVec &Notifications) {
std::copy(Notifications.begin(), Notifications.end(), NotificationTypes_.end());
std::copy(Notifications.begin(), Notifications.end(), std::back_inserter(NotificationTypes_));
SortNotifications();
}